[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: Ben Reser <ben_at_reser.org>
Date: 2004-01-25 02:27:29 CET

On Sat, Jan 24, 2004 at 05:51:58PM -0700, D.J. Heap wrote:
> Both trunk and .37 build and pass all local, svn, and dav tests for me.
> They also seem work work fine with swig 1.3.19 after building the
> python bindings and doing some light testing with svnlook.py.
>
> However, using swig 1.3.20 I can't build the python bindings and get
> link errors. Russell and Brane are the swig on win32 experts, I
> think...can one of you look at this? I know zip about swig.
>
>
> ------ 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
> 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), 0 warning(s)

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.

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jan 25 02:28:01 2004

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.