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

Re: Win32 Compile-Time error

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-02-05 01:45:52 CET

Dale Hirt wrote:

>Branko,
>
>As for what I'm trying to do, I'm trying to build the subversion directory
>tree using the dsw for VC++ 6.0.
>
>Yes, I'm trying to link against the dll's. I currently have a script that
>makes me a working directory with just the dsp's and dsw's, changing all
>paths appropriately, and taking out any specific libs that aren't already in
>the subversion directories(neon, libhttpd, apr, apr-util, apr-iconv, xml).
>
>So I changed it to say only static libs and Tada! It worked. I wonder why
>it doesn't like the dll's?
>

Because the .dsp's pass the -D AP{R,U,I}_DECLARE_STATIC options to the
compiler, which tells the APR headers to declare its public functions
without DLL linkage. If you want to link with the APR DLLs, you have to
remove those option from the .dsps.

This really isn't a Subversion question, it's a Windows programming
question.

>
>Dale
>
>
>
>-----Original Message-----
>From: Branko Cibej [mailto:brane@xbc.nu]
>Sent: Tuesday, February 04, 2003 4:23 PM
>To: Dale Hirt
>Cc: Subversion Development Mailing List (E-mail)
>Subject: Re: Win32 Compile-Time error
>
>
>Dale Hirt wrote:
>
>
>
>>Win2k SP2,
>>MS VC++ 6.0, SP5,
>>MSPlatform SDK,
>>latest cvs sources for apr, apr-util, and apr-iconv (although this error
>>happens with the libs that come with the Win32 binary of Apache 2.0.44),
>>and latest Subversion sources (yes, even today's, and yes, for the past two
>>days it has done this). I always run svn update and right now I'm at 4734.
>>
>>
>>libsvn_subr.lib(time.obj) : error LNK2001: unresolved external symbol
>>_apr_month_snames
>>libsvn_subr.lib(time.obj) : error LNK2001: unresolved external symbol
>>_apr_day_snames
>>Release/svn.exe : fatal error LNK1120: 2 unresolved externals
>>Error executing link.exe.
>>
>>__build__ - 3 error(s), 40 warning(s)
>>
>>I know that the symbols are in there, I see them. Although, they are shown
>>as __imp__apr_month_snames. I am wondering if this is a C linking issue.
>>Do I need to contact apr?
>>
>>Thanks for all your help.
>>
>>
>>
>>
>
>Are you by any chance trying to link the Subversion libraries against
>the APR DLL's? That won't work withough changing all the project files.
>Anyway, I built the stuff not 5 minutes ago, so you'll have to be a bit
>more specific about what you're trying to do.
>
>
>

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Feb 5 01:46:34 2003

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