curl-library
RE: Library issue (again?)
Date: Fri, 23 Nov 2007 12:25:00 -0700
---- build update -----
I was able to get more built using the libcmt.lib LIBCPMT.LIB and libcmtd.lib and LIBCPMTD.LIB libraries as per
http://msdn2.microsoft.com/en-us/library/abx4dbyh(VS.80).aspx -- there are now only a few errors left in the debug build. These
look like CRT lib calls. Does anyone have any ideas?
Max
----- snip
------ Rebuild All started: Project: RedPawComms, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'RedPawComms', configuration 'Debug|Win32'
Compiling...
RedPawComms.c
Compiling resources...
Compiling manifest to resources...
Linking...
curllib.lib(easy.obj) : error LNK2001: unresolved external symbol _strdup
curllib.lib(strequal.obj) : error LNK2019: unresolved external symbol _stricmp referenced in function _curl_strequal
curllib.lib(ldap.obj) : error LNK2001: unresolved external symbol _stricmp
curllib.lib(strequal.obj) : error LNK2019: unresolved external symbol _strnicmp referenced in function _curl_strnequal
curllib.lib(file.obj) : error LNK2019: unresolved external symbol _close referenced in function _Curl_file_done
curllib.lib(file.obj) : error LNK2019: unresolved external symbol _fdopen referenced in function _file_upload
curllib.lib(file.obj) : error LNK2019: unresolved external symbol _open referenced in function _file_upload
curllib.lib(file.obj) : error LNK2019: unresolved external symbol _read referenced in function _Curl_file
.\Debug/RedPawComms.exe : fatal error LNK1120: 7 unresolved externals
Build log was saved at "file://c:\Documents and Settings\max\My Documents\RPS\RPSV7Dvlmt\RedPawComms\Debug\BuildLog.htm"
RedPawComms - 9 error(s), 0 warning(s)
------ Rebuild All started: Project: RedPawComms, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'RedPawComms', configuration 'Release|Win32'
Compiling...
RedPawComms.c
Compiling resources...
Linking...
Embedding manifest...
Performing Post-Build Event...
Microsoft (R) Manifest Tool version 5.2.3790.2075
Copyright (c) Microsoft Corporation 2005.
All rights reserved.
Build log was saved at "file://c:\Documents and Settings\max\My Documents\RPS\RPSV7Dvlmt\RedPawComms\Release\BuildLog.htm"
RedPawComms - 0 error(s), 0 warning(s)
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
----- snip earlier message follows ...
Unfortunately, I have to use our standard tools, which since VISTA's release, are standardized on VS2005 projects. It took us 3
months to shift over, so that is fixed.
We have used cURL over the years and want to stick with it, if possible.
I have the compile and build working fine under RELEASE, but I have to have the DEBUG version working for development. It just
seems odd that there is a problem. The libraries are set to /MT and /MTd for release and debug, but I have tried it both ways just
to be sure.
And the error listing is odd. The first unresolved external listed is sprintf, standard c runtime.
I have checked and double checked the library setup. Debug and Release are the same. Have you ever seen or heard of this before?
There must be others using VS2005.
Thanks for any direction,
Max
------ Rebuild All started: Project: RedPawComms, Configuration: Debug Win32 ------ <<DEBUG BUILD
Deleting intermediate and output files for project 'RedPawComms', configuration 'Debug|Win32'
Compiling...
RedPawComms.c
Compiling resources...
Compiling manifest to resources...
Linking...
RedPawComms.obj : error LNK2019: unresolved external symbol _sprintf referenced in function _RPV7InitializeLogFile
curllib.lib(mprintf.obj) : error LNK2001: unresolved external symbol _sprintf
RedPawComms.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function _RPV7InitializeLogFile
RedPawComms.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
RedPawComms.obj : error LNK2001: unresolved external symbol __RTC_InitBase
curllib.lib(ftp.obj) : error LNK2001: unresolved external symbol _strstr
curllib.lib(http.obj) : error LNK2001: unresolved external symbol _strstr
// ----- snip out a lot of the same type of errors -----
curllib.lib(formdata.obj) : error LNK2019: unresolved external symbol __chkstk referenced in function _AddFormDataf
.\Debug/RedPawComms.exe : fatal error LNK1120: 84 unresolved externals
Build log was saved at "file://c:\Documents and Settings\max\My Documents\RPS\RPSV7Dvlmt\RedPawComms\Debug\BuildLog.htm"
RedPawComms - 237 error(s), 0 warning(s)
------ Rebuild All started: Project: RedPawComms, Configuration: Release Win32 - << RELEASE BUILD
Deleting intermediate and output files for project 'RedPawComms', configuration 'Release|Win32'
Compiling...
RedPawComms.c
Compiling resources...
Linking...
Embedding manifest...
Performing Post-Build Event...
Microsoft (R) Manifest Tool version 5.2.3790.2075
Copyright (c) Microsoft Corporation 2005.
All rights reserved.
Build log was saved at "file://c:\Documents and Settings\max\My Documents\RPS\RPSV7Dvlmt\RedPawComms\Release\BuildLog.htm"
RedPawComms - 0 error(s), 0 warning(s)
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Yang Tse
Sent: Thursday, November 22, 2007 6:07 PM
To: libcurl development
Subject: Re: Library issue (again?)
> Any other thoughts?
Yep sure!
Forget for a while that VS2005 has an IDE and drop to the command line.
Download http://cool.haxx.se/curl-daily/curl-7.17.2-20071123.zip and
uncompress it somewhere.
Open a command prompt window and do the following from it:
Find vsvars32.bat in vs2005 and run it.
Change to where you uncompressed curl-7.17.2-20071123.zip
Edit line 24 in makefile and change "VC=vc6" into "VC=vc8", save and close it.
run 'nmake vc'
That should build the library and curl for you under a known configuration.
Afterwards you can study src/Makefile.vc8 and easily adapt it to build
your program.
-- -=[Yang]=-Received on 2007-11-23