cURL

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1373 unresolved symbol error when build curl using Visual Studio 2013

From: Steve Holme <captain-caveman_at_users.sf.net>
Date: Tue, 20 May 2014 20:06:15 +0000

- **status**: pending --> closed-fixed

---
** [bugs:#1373] unresolved symbol error when build curl using Visual Studio 2013**
**Status:** closed-fixed
**Created:** Sun May 18, 2014 06:18 PM UTC by bowmanhan
**Last Updated:** Tue May 20, 2014 08:04 PM UTC
**Owner:** Steve Holme
I tried compiling libCurl and Curl in Visual Studio 2013 using 
the project file included in the ./vs/vc6 folder (vc6curl.dsw).
I am using the latest curl 7.36.0 from the offical website.
I compiled libCurl without any error.But When I tried to build curl,I got 
2>dll-debug/curl.exe : fatal error LNK1120: 1 unresolved externals
here is the full log,I omit some unimportant logs with ...
1>------ Build started: Project: libcurl, Configuration: DLL Debug Win32 ------
1>  amigaos.c
1>  asyn-ares.c
1>  asyn-thread.c
1>  base64.c
...
1>  Generating Code...
1>  Compiling...
1>  hostip6.c
1>  hostip.c
...
1>  md5.c
1>  Generating Code...
1>  Compiling...
1>  memdebug.c
...
1>  smtp.c
1>  Generating Code...
1>  Compiling...
1>  socks.c
...
1>  curl_darwinssl.c
1>  curl_schannel.c
1>  Generating Code...
1>  Compiling...
1>  cyassl.c
1>  gskit.c
...
1>  x509asn1.c
1>  Generating Code...
1>     Creating library dll-debug/libcurld_imp.lib and object dll-debug/libcurld_imp.exp
1>  vc6libcurl.vcxproj -> I:\lib\curl-7.36.0\vs\vc6\lib\.\dll-debug\libcurl.dll
2>------ Build started: Project: curl, Configuration: using libcurl DLL Debug Win32 ------
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(381,5): warning MSB8028: The intermediate directory (.\dll-debug/obj\) contains files shared from another project (curltool.vcxproj).  This can lead to incorrect clean and rebuild behavior.
2>  nonblock.c
2>  rawstr.c
2>  strtoofft.c
2>  tool_binmode.c
...
2>  tool_writeout.c
2>  Generating Code...
2>  Compiling...
2>  tool_xattr.c
2>  Generating Code...
2>tool_cb_rea.obj : error LNK2019: unresolved external symbol _curlx_read referenced in function _tool_read_cb
2>dll-debug/curl.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I found the problem is that curl using curlx_read function which is not an offical libCurl API,
but the visual studio curl project didn`t add the warnless.c,when I add warnless.c to curl project,the problem fixed.

I also make a patch by adding warnless.c to curl project,tested under Visual Studio 2008 and Visual Studio 2013

diff vc6curltool.dsp.orig vc6curltool.dsp
153a154,157
> SOURCE=..\..\..\lib\warnless.c
> # End Source File
> # Begin Source File
>
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-05-20

These mail archives are generated by hypermail.

donate! Page updated March 21, 2014.
web site info

File upload with ASP.NET