1
Java / Re: Sorry, I'm out
« on: June 07, 2017, 10:48:18 am »
I sent you a PM
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
[100%] Building CXX object CMakeFiles/server.dir/code/Server.cpp.obj
Linking CXX executable ..\bin\server.exe
D:\C++\SFNUL\lib\libsfnul-s.a(TcpListener.cpp.obj):TcpListener.cpp:(.text$_ZN3sfn11TcpListener15TcpListenerImpl13AcceptHandlerERKSt10error_codeSt10shared_ptrIN4asio19basic_stream_socketINS6_2ip3tcpENS6_21stream_socket_serviceIS9_EEEEE[_ZN3sfn11TcpListener15TcpListenerImpl13AcceptHandlerERKSt10error_codeSt10shared_ptrIN4asio19basic_stream_socketINS6_2ip3tcpENS6_21stream_socket_serviceIS9_EEEEE]+0x8cb): undefined reference to `AcceptEx'
D:\C++\SFNUL\lib\libsfnul-s.a(TcpListener.cpp.obj):TcpListener.cpp:(.text$_ZN4asio6detail25win_iocp_socket_accept_opINS_12basic_socketINS_2ip3tcpENS_21stream_socket_serviceIS4_EEEES4_NS0_15wrapped_handlerINS_10io_service6strandESt5_BindIFZN3sfn11TcpListener15TcpListenerImpl13AcceptHandlerERKSt10error_codeSt10shared_ptrINS_19basic_stream_socketIS4_S6_EEEEUlSt8weak_ptrISD_ESH_SL_E_SN_St12_PlaceholderILi1EESL_EEEEE11do_completeEPNS0_19win_iocp_io_serviceEPNS0_18win_iocp_operationESH_y[_ZN4asio6detail25win_iocp_socket_accept_opINS_12basic_socketINS_2ip3tcpENS_21stream_socket_serviceIS4_EEEES4_NS0_15wrapped_handlerINS_10io_service6strandESt5_BindIFZN3sfn11TcpListener15TcpListenerImpl13AcceptHandlerERKSt10error_codeSt10shared_ptrINS_19basic_stream_socketIS4_S6_EEEEUlSt8weak_ptrISD_ESH_SL_E_SN_St12_PlaceholderILi1EESL_EEEEE11do_completeEPNS0_19win_iocp_io_serviceEPNS0_18win_iocp_operationESH_y]+0xfd): undefined reference to `GetAcceptExSockaddrs'
D:\C++\SFNUL\lib\libsfnul-s.a(TcpListener.cpp.obj):TcpListener.cpp:(.text$_ZN4asio6detail25win_iocp_socket_accept_opINS_12basic_socketINS_2ip3tcpENS_21stream_socket_serviceIS4_EEEES4_NS0_15wrapped_handlerINS_10io_service6strandESt5_BindIFZN3sfn11TcpListener15TcpListenerImpl13AcceptHandlerERKSt10error_codeSt10shared_ptrINS_19basic_stream_socketIS4_S6_EEEEUlSt8weak_ptrISD_ESH_SL_E_SN_St12_PlaceholderILi1EESL_EEEEE11do_completeEPNS0_19win_iocp_io_serviceEPNS0_18win_iocp_operationESH_y[_ZN4asio6detail25win_iocp_socket_accept_opINS_12basic_socketINS_2ip3tcpENS_21stream_socket_serviceIS4_EEEES4_NS0_15wrapped_handlerINS_10io_service6strandESt5_BindIFZN3sfn11TcpListener15TcpListenerImpl13AcceptHandlerERKSt10error_codeSt10shared_ptrINS_19basic_stream_socketIS4_S6_EEEEUlSt8weak_ptrISD_ESH_SL_E_SN_St12_PlaceholderILi1EESL_EEEEE11do_completeEPNS0_19win_iocp_io_serviceEPNS0_18win_iocp_operationESH_y]+0x369): undefined reference to `AcceptEx'
collect2.exe: error: ld returned 1 exit status
CMakeFiles\server.dir\build.make:191: recipe for target '../bin/server.exe' failed
mingw32-make[2]: *** [../bin/server.exe] Error 1
CMakeFiles\Makefile2:59: recipe for target 'CMakeFiles/server.dir/all' failed
mingw32-make[1]: *** [CMakeFiles/server.dir/all] Error 2
makefile:75: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
cmake_minimum_required( VERSION 2.8 )
set( ROOTDIR ${CMAKE_SOURCE_DIR} )
set( CMAKE_MODULE_PATH ${ROOTDIR}/cmake/modules )
set( EXECUTABLE_OUTPUT_PATH ${ROOTDIR}/bin )
add_definitions( -static-libgcc -static-libstdc++ -Wfatal-errors -std=c++11 -fpermissive -municode )
file( GLOB_RECURSE source_files code/* )
set( SFNUL_STATIC_LIBRARIES TRUE )
find_package( SFNUL REQUIRED )
include_directories( ${ROOTDIR}/code ${SFNUL_INCLUDE_DIR} )
add_executable( server ${source_files} code/Server.cpp )
target_link_libraries( server ${SFNUL_LIBRARY} ${SFNUL_DEPENDENCIES} )