cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Cannot compile libcurl-7.15.4 source files on Windows

From: neetha mannem <neetha_mannem_at_yahoo.com>
Date: Thu, 29 Jun 2006 14:43:23 -0700 (PDT)

I used the provided project file and created static library file curllib.lib.
  But linking this library in my program gave below errors:
   
  The same program compiled and linked clean when I used dynamic library libcurl.lib and libcurl.dll.
   
  Linking...
  LINK : C:\libcurl\VisualStudio\test\Debug\test.exe not found or not built by the last incremental link; performing full link
  ftpget.obj : error LNK2019: unresolved external symbol __imp__curl_global_cleanup referenced in function _main
  ftpget.obj : error LNK2019: unresolved external symbol __imp__curl_easy_cleanup referenced in function _main
  ftpget.obj : error LNK2019: unresolved external symbol __imp__curl_easy_perform referenced in function _main
  ftpget.obj : error LNK2019: unresolved external symbol __imp__curl_easy_setopt referenced in function _main
  ftpget.obj : error LNK2019: unresolved external symbol __imp__curl_easy_init referenced in function _main
  ftpget.obj : error LNK2019: unresolved external symbol __imp__curl_global_init referenced in function _main
  C:\libcurl\VisualStudio\test\Debug\test.exe : fatal error LNK1120: 6 unresolved externals
  Build log was saved at "file://c:\libcurl\VisualStudio\test\test\Debug\BuildLog.htm"
  test - 7 error(s), 2 warning(s)
  ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
   
  Am I missing something here? Please help..
   
  Thanks,
  neetham
  

Daniel Stenberg <daniel_at_haxx.se> wrote:
  On Wed, 28 Jun 2006, neetha mannem wrote:

> I am a new user. I have downloaded curl-7.15.4.zip on windows.
> libcurl-7.15.4 source and header files that exists in lib directory, when
> compiling on MSVC IDE, I see below errors:

But you didn't use the provided project file, did you?

> \curl-7.15.4\lib\amigaos.h(29) : fatal error C1083: Cannot open include
> file: 'exec/types.h': No such file or directory
> nwlib.c
> \curl-7.15.4\lib\nwlib.c(27) : fatal error C1083: Cannot open include file:
> 'library.h': No such file or directory

That header file and that C file should not be included in a windows build.

We should probably do some #ifdefs in there to avoid these errors in case
people do like you did...

-- 
Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
 		
---------------------------------
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.
Received on 2006-06-29