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

Re: Win32 and Swig 1.3.20

From: D.J. Heap <dj_at_shadyvale.net>
Date: 2004-01-25 03:41:41 CET

Ben Reser wrote:
[snip]
> They need to set SVN_SWIG_VERSION similarly to how the *nix build system
> does. For 1.3.20 you'd want whatever the equivalent of:
> -DSVN_SWIG_VERSION=103020
> is for your compiler.
>
> HTHs.
>

After setting that define and adding swig/lib to the include paths to
pick up python/precommon.swg, I get slightly different errors (but
seemingly fundamentally the same link error -- is there a lib that needs
to be linked in?):

------ Build started: Project: swig_python_core, Configuration: Release
Win32 ------

Performing Custom Build Step
SWIG:1: Warning(120): -c command line option is deprecated. Use
-noruntime instead.
..\..\..\subversion/include\svn_props.h:282: Warning(305): Bad constant
value (ignored).
Compiling...
core.c
..\..\..\subversion\bindings\swig\swigutil_py.h(39) : warning C4005:
'SWIG_NewPointerObj' : macro redefinition
         \Projects\Sub1\subversion\bindings\swig\python\core.c(324) :
see previous definition of 'SWIG_NewPointerObj'
Compiling resources...
Linking...
    Creating library
..\..\..\Release\subversion/bindings/swig\python\_core.lib and object
..\..\..\Release\subversion/bindings/swig\python\_core.exp
core.obj : error LNK2019: unresolved external symbol
_SWIG_Python_TypeClientData referenced in function _svn_error_t_swigregister

core.obj : error LNK2019: unresolved external symbol
_SWIG_Python_TypeRegister referenced in function _init_core

libsvn_swig_py-1.lib(swigutil_py.obj) : error LNK2019: unresolved
external symbol _SWIG_NewPointerObj referenced in function _make_pointer
..\..\..\Release\subversion/bindings/swig\python\_core.dll : fatal error
LNK1120: 3 unresolved externals

swig_python_core - 4 error(s), 1 warning(s)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jan 25 03:42:24 2004

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