Re: [Cppcms-users] Need Help!!!!
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2013-04-04 06:25:29
|
Hello, first of all take a look on this: http://cppcms.com/wikipp/en/page/notes_for_windows_users#Building.and.using.CppCMS.under.Visual.Studio When you are building CppCMS using VS you need to use nmake files rather than create VS project. VS projects are not supported. Tell if you still have problems Also make sure that prce/zlib and cppcms are build with correct release debug versions. i.e. Build Release version of CppCMS with Release versions of zlib/pcre and the other way around - use debug build of zlib/prce with debug build of CppCMS. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: ssss <hua...@ho...> >To: "cpp...@li..." <cpp...@li...> >Sent: Thursday, April 4, 2013 1:32 AM >Subject: [Cppcms-users] Need Help!!!! > > > >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. > > >Best wishes, > > >Ying > > > > > > > > > > >Here is part of the output of VS building and the full building output is attached with this email: > > >3> Creating library Z:/cppcms-1.0.3/booster/Release/booster.lib and object Z:/cppcms-1.0.3/booster/Release/booster.exp >4> booster-static.vcxproj -> Z:\cppcms-1.0.3\booster\Release\libbooster.lib >3>endpoint.obj : error LNK2019: unresolved external symbol __imp__htons@4 referenced in function "public: __thiscall booster::aio::endpoint::endpoint(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (??0endpoint@aio@booster@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) >3>endpoint.obj : error LNK2019: unresolved external symbol __imp__inet_addr@4 referenced in function "public: __thiscall booster::aio::endpoint::endpoint(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (??0endpoint@aio@booster@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) >3>endpoint.obj : error LNK2019: unresolved external symbol __imp__ntohs@4 referenced in function "public: int __thiscall booster::aio::endpoint::port(void)const " (?port@endpoint@aio@booster@@QBEHXZ) >3>reactor.obj : error LNK2019: unresolved external symbol __imp__select@20 referenced in function "public: virtual int __thiscall booster::aio::w32_select_reactor::poll(struct booster::aio::reactor::event *,int,int,int &)" (?poll@w32_select_reactor@aio@booster@@UAEHPAUevent@reactor@23@HHAAH@Z) >3>reactor.obj : error LNK2019: unresolved external symbol __imp__WSAStartup@8 referenced in function "public: __thiscall booster::aio::`anonymous namespace'::loader::loader(void)" (??0loader@?A0x48b22409@aio@booster@@QAE@XZ) >3>acceptor.obj : error LNK2001: unresolved external symbol __imp__WSAGetLastError@0 >3>stream_socket.obj : error LNK2001: unresolved external symbol __imp__WSAGetLastError@0 >3>reactor.obj : error LNK2019: unresolved external symbol __imp__WSAGetLastError@0 referenced in function "public: virtual int __thiscall booster::aio::w32_select_reactor::poll(struct booster::aio::reactor::event *,int,int,int &)" (?poll@w32_select_reactor@aio@booster@@UAEHPAUevent@reactor@23@HHAAH@Z) >3>select_iterrupter.obj : error LNK2001: unresolved external symbol __imp__WSAGetLastError@0 >3>basic_io_device.obj : error LNK2001: unresolved external symbol __imp__WSAGetLastError@0 >3>basic_socket.obj : error LNK2001: unresolved external symbol __imp__WSAGetLastError@0 >3>select_iterrupter.obj : error LNK2019: unresolved external symbol __imp__accept@12 referenced in function "public: bool __thiscall booster::aio::impl::select_interrupter::open(void)" (?open@select_interrupter@impl@aio@booster@@QAE_NXZ) >3>acceptor.obj : error LNK2001: unresolved external symbol __imp__accept@12 >3>select_iterrupter.obj : error LNK2019: unresolved external symbol __imp__bind@12 referenced in function "public: bool __thiscall booster::aio::impl::select_interrupter::open(void)" (?open@select_interrupter@impl@aio@booster@@QAE_NXZ) >3>acceptor.obj : error LNK2001: unresolved external symbol __imp__bind@12 >3>select_iterrupter.obj : error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function "public: __thiscall booster::aio::impl::select_interrupter::~select_interrupter(void)" (??1select_interrupter@impl@aio@booster@@QAE@XZ) >3>basic_io_device.obj : error LNK2001: unresolved external symbol __imp__closesocket@4 >3>select_iterrupter.obj : error LNK2019: unresolved external symbol __imp__connect@12 referenced in function "public: bool __thiscall booster::aio::impl::select_interrupter::open(void)" (?open@select_interrupter@impl@aio@booster@@QAE_NXZ) >3>stream_socket.obj : error LNK2001: unresolved external symbol __imp__connect@12 >3>select_iterrupter.obj : error LNK2019: unresolved external symbol __imp__ioctlsocket@12 referenced in function __catch$?open@select_interrupter@impl@aio@booster@@QAE_NXZ$0 >3>basic_io_device.obj : error LNK2001: unresolved external symbol __imp__ioctlsocket@12 >3>select_iterrupter.obj : error LNK2019: unresolved external symbol __imp__getsockname@12 referenced in function "public: bool __thiscall booster::aio::impl::select_interrupter::open(void)" (?open@select_interrupter@impl@aio@booster@@QAE_NXZ) >3>basic_socket.obj : error LNK2001: unresolved external symbol __imp__getsockname@12 >3>select_iterrupter.obj : error LNK2019: unresolved external symbol __imp__htonl@4 referenced in function "public: bool __thiscall booster::aio::impl::select_interrupter::open(void)" (?open@select_interrupter@impl@aio@booster@@QAE_NXZ) >3>select_iterrupter.obj : error LNK2019: unresolved external symbol __imp__listen@8 referenced in function "public: bool __thiscall booster::aio::impl::select_interrupter::open(void)" (?open@select_interrupter@impl@aio@booster@@QAE_NXZ) >3>acceptor.obj : error LNK2001: unresolved external symbol __imp__listen@8 >3>select_iterrupter.obj : error LNK2019: unresolved external symbol __imp__recv@16 referenced in function "public: void __thiscall booster::aio::impl::select_interrupter::clean(void)" (?clean@select_interrupter@impl@aio@booster@@QAEXXZ) >3>select_iterrupter.obj : error LNK2019: unresolved external symbol __imp__send@16 referenced in function "public: void __thiscall booster::aio::impl::select_interrupter::notify(void)" (?notify@select_interrupter@impl@aio@booster@@QAEXXZ) >3>select_iterrupter.obj : error LNK2019: unresolved external symbol __imp__setsockopt@20 referenced in function "public: bool __thiscall booster::aio::impl::select_interrupter::open(void)" (?open@select_interrupter@impl@aio@booster@@QAE_NXZ) >3>basic_socket.obj : error LNK2001: unresolved external symbol __imp__setsockopt@20 >3>select_iterrupter.obj : error LNK2019: unresolved external symbol __imp__socket@12 referenced in function "public: bool __thiscall booster::aio::impl::select_interrupter::open(void)" (?open@select_interrupter@impl@aio@booster@@QAE_NXZ) >3>basic_socket.obj : error LNK2001: unresolved external symbol __imp__socket@12 >3>basic_socket.obj : error LNK2019: unresolved external symbol __imp__getpeername@12 referenced in function "public: class booster::aio::endpoint __thiscall booster::aio::basic_socket::remote_endpoint(class booster::system::error_code &)" (?remote_endpoint@basic_socket@aio@booster@@QAE?AVendpoint@23@AAVerror_code@system@3@@Z) >3>basic_socket.obj : error LNK2019: unresolved external symbol __imp__getsockopt@20 referenced in function "public: bool __thiscall booster::aio::basic_socket::get_option(enum booster::aio::basic_socket::boolean_option_type,class booster::system::error_code &)" (?get_option@basic_socket@aio@booster@@QAE_NW4boolean_option_type@123@AAVerror_code@system@3@@Z) >3>stream_socket.obj : error LNK2001: unresolved external symbol __imp__getsockopt@20 >3>stream_socket.obj : error LNK2019: unresolved external symbol __imp__shutdown@8 referenced in function "public: void __thiscall booster::aio::stream_socket::shutdown(enum booster::aio::stream_socket::how_type)" (?shutdown@stream_socket@aio@booster@@QAEXW4how_type@123@@Z) >3>stream_socket.obj : error LNK2019: unresolved external symbol __imp__WSARecv@28 referenced in function "private: int __thiscall booster::aio::stream_socket::readv(class booster::aio::mutable_buffer const &)" (?readv@stream_socket@aio@booster@@AAEHABVmutable_buffer@23@@Z) >3>stream_socket.obj : error LNK2019: unresolved external symbol __imp__WSASend@28 referenced in function "private: int __thiscall booster::aio::stream_socket::writev(class booster::aio::const_buffer const &)" (?writev@stream_socket@aio@booster@@AAEHABVconst_buffer@23@@Z) >3>Z:\cppcms-1.0.3\booster\Release\booster.dll : fatal error LNK1120: 23 unresolved externals > > > > >5> Creating library Z:/cppcms-1.0.3/Release/cppcms.lib and object Z:/cppcms-1.0.3/Release/cppcms.exp >5>service.obj : error LNK2019: unresolved external symbol __imp__send@16 referenced in function "public: void __thiscall cppcms::`anonymous namespace'::apache_event_handler::operator()(void)const " (??Rapache_event_handler@?A0x845b90c3@cppcms@@QBEXXZ) >5>send_timeout.obj : error LNK2019: unresolved external symbol __imp__setsockopt@20 referenced in function "void __cdecl cppcms::impl::set_send_timeout(class booster::aio::stream_socket &,int)" (?set_send_timeout@impl@cppcms@@YAXAAVstream_socket@aio@booster@@H@Z) >5>send_timeout.obj : error LNK2019: unresolved external symbol __imp__WSAGetLastError@0 referenced in function "void __cdecl cppcms::impl::set_send_timeout(class booster::aio::stream_socket &,int)" (?set_send_timeout@impl@cppcms@@YAXAAVstream_socket@aio@booster@@H@Z) >5>fastcgi_api.obj : error LNK2019: unresolved external symbol __imp__htonl@4 referenced in function "private: void __thiscall cppcms::impl::cgi::fastcgi::add_pair(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?add_pair@fastcgi@cgi@impl@cppcms@@AAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) >5>fastcgi_api.obj : error LNK2019: unresolved external symbol __imp__htons@4 referenced in function "private: void __thiscall cppcms::impl::cgi::fastcgi::async_send_respnse(class booster::callback<void __cdecl(class booster::system::error_code const &)> const &)" (?async_send_respnse@fastcgi@cgi@impl@cppcms@@AAEXABV?$callback@$$A6AXABVerror_code@system@booster@@@Z@booster@@@Z) >5>fastcgi_api.obj : error LNK2019: unresolved external symbol __imp__ntohs@4 referenced in function "private: bool __thiscall cppcms::impl::cgi::fastcgi::non_blocking_read_record(void)" (?non_blocking_read_record@fastcgi@cgi@impl@cppcms@@AAE_NXZ) >5>Z:\cppcms-1.0.3\Release\cppcms.dll : fatal error LNK1120: 6 unresolved externals >------------------------------------------------------------------------------ >Minimize network downtime and maximize team effectiveness. >Reduce network management and security costs.Learn how to hire >the most talented Cisco Certified professionals. Visit the >Employer Resources Portal >http://www.cisco.com/web/learning/employer_resources/index.html >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |