Re: [Cppcms-users] Need Help!!!!
Brought to you by:
artyom-beilis
|
From: Christian G. <chr...@gm...> - 2013-04-04 06:16:37
|
2013/4/4 ssss <hua...@ho...>: > Hi, > > I am trying to start to use cppcms to develop a web-based system. I have > downloaded cppcms 1.0.3 and I also use zlib 1.2.7 and pcre 8.32. I am under > windows system and using visual studio 2012 and cmake 2.8.10. > > I am trying to compile the cppcms library for 32bit. I start from compiling > the zlib and pcre (release) without any problem. But I have been fighting > with compiling the cppcms for one day without any progress. So I have to > turn to the mail list to look for help!!!!! > > What I have done is: > > I go to the cppcms folder and use the command > > F:\cmake-2.8.10.2\bin\cmake -G"Visual Studio 11" > -DCMAKE_INCLUDE_PATH=Z:\pcre\include;Z:\libzlib-v\include > -DCMAKE_LIBRARY_PATH=z:\pcre\lib;Z:\libzlib-v\lib > -DCMAKE_INSTALL_PREFIX=Z:\libcppcms -DCMAKE_BUILD_TYPE=Release > > The VS project is generated without any problem. I can open the VS solution, > named as cppcms.sln. There are 77 projects generated. Then I start to build > the solution, BUT I always get the errors (error LNK2019: unresolved > external symbol) at the end of this email. Finally I can see the static > files, booster.lib, cppcms.lib, etc. But no DLL files are compiled. > > Someone has asked very similar question in > http://stackoverflow.com/questions/12657186/cppcms-lots-of-unresolved-external-symbols. > But I can not find any answer. > > I am sure the zlib and pcre is no problem. > > Thanks for your help so that I can get rid of this boring, even angering > task and start to enjoy the web development. > As I am not coding/compiling my cppcms stuff I am not 100% sure, but try to link against ws2_32.lib, the Winsock2 library. See http://www.installsetupconfig.com/win32programming/windowsocketwinsock214_7.html for some details. greets -- Christian Gmeiner, MSc |