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

Subversion 1.0.6 library compilation issues

From: Ed Curren <ecurren_at_adelphia.net>
Date: 2004-08-21 19:38:25 CEST

Hello all,

            I'm using the subversion 1.0.6 library for Windows (i.e.
svn-win32-1.0.6_dev.zip) with Visual Studio 6.0 SP5. I created a console
application and included all of the lib files in the project (i.e. all the
files under the "lib" directory as well as those lib files under the apr,
apriconv, apr-util, and neon directories). In addition to these I included
rpcrt4.lib, shfolder.lib, and ws2_32.lib as these libraries appear to be
dependencies of the svn library. I basically copied the svnadmin main.c
file into my project and attempted to compile it, with the

 

--------------------Configuration: Test - Win32 Debug--------------------

Compiling...

Test.cpp

c:\sourcecode\sandbox\subversionapi\test.cpp(50) : warning C4042: 'open_fn'
: has bad storage class

c:\sourcecode\sandbox\subversionapi\test.cpp(841) : error C2065:
'check_lib_versions' : undeclared identifier

c:\sourcecode\sandbox\subversionapi\test.cpp(841) : error C2440: '=' :
cannot convert from 'int' to 'struct svn_error_t *'

        Conversion from integral type to pointer type requires
reinterpret_cast, C-style cast or function-style cast

c:\sourcecode\sandbox\subversionapi\test.cpp(893) : error C2065: '_' :
undeclared identifier

c:\sourcecode\sandbox\subversionapi\test.cpp(933) : error C2065:
'svnadmin__deltas' : undeclared identifier

c:\sourcecode\sandbox\subversionapi\test.cpp(933) : error C2051: case
expression not constant

c:\sourcecode\sandbox\subversionapi\test.cpp(934) : error C2039:
'use_deltas' : is not a member of 'svnadmin_opt_state'

        c:\sourcecode\sandbox\subversionapi\test.cpp(310) : see declaration
of 'svnadmin_opt_state'

c:\sourcecode\sandbox\subversionapi\test.cpp(942) : error C2065:
'svnadmin__fs_type' : undeclared identifier

c:\sourcecode\sandbox\subversionapi\test.cpp(942) : error C2051: case
expression not constant

c:\sourcecode\sandbox\subversionapi\test.cpp(943) : error C2039: 'fs_type' :
is not a member of 'svnadmin_opt_state'

        c:\sourcecode\sandbox\subversionapi\test.cpp(310) : see declaration
of 'svnadmin_opt_state'

c:\sourcecode\sandbox\subversionapi\test.cpp(1004) : error C2065:
'svn_cmdline_fprintf' : undeclared identifier

c:\sourcecode\sandbox\subversionapi\test.cpp(1142) : error C2065:
'svn_cmdline_fflush' : undeclared identifier

c:\sourcecode\sandbox\subversionapi\test.cpp(1142) : error C2440: '=' :
cannot convert from 'int' to 'struct svn_error_t *'

        Conversion from integral type to pointer type requires
reinterpret_cast, C-style cast or function-style cast

Error executing cl.exe.

 

Test.exe - 12 error(s), 1 warning(s)

 

Can anyone help with this? I'm quite baffled.

Thanks much.

Ed

 
Received on Sat Aug 21 19:38:34 2004

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