[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Compiling minimal_client.c with VCToolkit?

From: Matthias Hryniszak <matthias_at_hryniszak.de>
Date: 2005-08-09 01:51:22 CEST

Hello,

I'm wondering.. Is possible to compile the minimal_client.c with the VCToolkit2003 that microsoft is making available for download under http://msdn.microsoft.com/visualc/vctoolkit2003? I've been thinking it should be most the easy way to start playing around with this compiler and the svn-win32-1.2.1_dev.zip since there are all of the required libs and header files already precompiled for the microsoft compiler.

But there are a lot of errors comming when I compile this example. Here is a small list of the compiler output:

minimal_client.cpp
x:\msvc\include\apr\apr_errno.h(52) : error C2146: syntax error : missing ';' before identifier 'apr_strerror'
x:\msvc\include\apr\apr_errno.h(55) : error C2061: syntax error : identifier 'apr_size_t'
x:\msvc\include\apr\apr_general.h(179) : error C2146: syntax error : missing ';' before identifier 'apr_initialize'
x:\msvc\include\apr\apr_general.h(179) : error C2733: second C linkage of overloaded function 'APR_DECLARE' not allowed
        x:\msvc\include\apr\apr_general.h(179) : see declaration of 'APR_DECLARE'
x:\msvc\include\apr\apr_general.h(193) : error C2146: syntax error : missing ';' before identifier 'apr_app_initialize'
x:\msvc\include\apr\apr_general.h(206) : error C2146: syntax error : missing ';' before identifier 'apr_terminate'
x:\msvc\include\apr\apr_general.h(217) : error C2146: syntax error : missing ';' before identifier 'apr_terminate2'
x:\msvc\include\apr\apr_general.h(217) : error C2733: second C linkage of overloaded function 'APR_DECLARE' not allowed
        x:\msvc\include\apr\apr_general.h(217) : see declaration of 'APR_DECLARE'

and so on.. I belive there's a problem with the APR_DECLARE definition. Any suggestions?

All I've done was I've installed the compiler on a substituted drive (X:), added all paths to the vcvars32.bat (they are right, I've checked it) and typed

X:\Test> cl minimal_client.c

I would very thankfull if somebody could give me a pointer how to go though this. I know it's a lame question, but please help the newbie anyway.

Matthias Hryniszak.
Received on Tue Aug 9 01:52:21 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.