Hello to all, i have followed the instruction to build the pjsua solution file in Visual Studio without any error but when i try to create an application that does include pjlib then error pop out. I define PJ_WIN32 = 1 in project settings which cause compile error and without the macro i encounter linker error. warning C4244: '=' : conversion from '__w64 unsigned int' to 'unsigned int', possible loss of data Warning 2 warning C4244: '=' : conversion from '__w64 int' to 'unsigned int', possible loss of data Warning 3 warning C4244: '=' : conversion from '__w64 int' to 'unsigned int', possible loss of data Warning 4 warning C4244: '=' : conversion from '__w64 int' to 'unsigned int', possible loss of data Warning 5 warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss Warning 6 warning C4101: 'accID' : unreferenced local variable d:\c++\test\test\main.cpp 37 Warning 7 warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library Test Error 8 error LNK2019: unresolved external symbol __imp__ntohs at 4referenced in function _pj_ntohs libpjproject-i386-Win32-vc8-Debug.lib Error 9 error LNK2001: unresolved external symbol __imp__ntohs at 4 libpjproject-i386-Win32-vc8-Debug.lib Error 10 error LNK2019: unresolved external symbol __imp__htons at 4referenced in function _pj_htons libpjproject-i386-Win32-vc8-Debug.lib Error 11 error LNK2001: unresolved external symbol __imp__htons at 4 libpjproject-i386-Win32-vc8-Debug.lib Error 12 error LNK2019: unresolved external symbol __imp__ntohl at 4referenced in function _pj_ntohl libpjproject-i386-Win32-vc8-Debug.lib Error 13 error LNK2001: unresolved external symbol __imp__ntohl at 4 libpjproject-i386-Win32-vc8-Debug.lib Error 14 error LNK2001: unresolved external symbol __imp__ntohl at 4 libpjproject-i386-Win32-vc8-Debug.lib Error 15 error LNK2001: unresolved external symbol __imp__ntohl at 4 libpjproject-i386-Win32-vc8-Debug.lib Error 16 error LNK2019: unresolved external symbol __imp__htonl at 4referenced in function _pj_htonl libpjproject-i386-Win32-vc8-Debug.lib Error 17 error LNK2001: unresolved external symbol __imp__htonl at 4 libpjproject-i386-Win32-vc8-Debug.lib Error 18 error LNK2001: unresolved external symbol __imp__htonl at 4 libpjproject-i386-Win32-vc8-Debug.lib Error 19 error LNK2019: unresolved external symbol __imp__inet_ntoa at 4referenced in function _pj_inet_ntoa libpjproject-i386-Win32-vc8-Debug.lib Error 20 error LNK2019: unresolved external symbol __imp__inet_addr at 4referenced in function _pj_inet_aton libpjproject-i386-Win32-vc8-Debug.lib Error 21 error LNK2019: unresolved external symbol __imp__WSAStringToAddressA at 20 referenced in function _pj_inet_pton libpjproject-i386-Win32-vc8-Debug.lib Error 22 error LNK2019: unresolved external symbol __imp__WSAAddressToStringA at 20 referenced in function _pj_inet_ntop libpjproject-i386-Win32-vc8-Debug.lib Error 23 error LNK2019: unresolved external symbol __imp__gethostname at 8 referenced in function _pj_gethostname libpjproject-i386-Win32-vc8-Debug.lib Error 24 error LNK2019: unresolved external symbol __imp__WSAGetLastError at 0 referenced in function _pj_sock_socket libpjproject-i386-Win32-vc8-Debug.lib Error 25 error LNK2001: unresolved external symbol __imp__WSAGetLastError at 0 libpjproject-i386-Win32-vc8-Debug.lib Error 26 error LNK2001: unresolved external symbol __imp__WSAGetLastError at 0 libpjproject-i386-Win32-vc8-Debug.lib Error 27 error LNK2019: unresolved external symbol __imp__WSASocketA at 24 referenced in function _pj_sock_socket libpjproject-i386-Win32-vc8-Debug.lib Error 28 error LNK2019: unresolved external symbol __imp__bind at 12referenced in function _pj_sock_bind libpjproject-i386-Win32-vc8-Debug.lib Error 29 error LNK2019: unresolved external symbol __imp__closesocket at 4 referenced in function _pj_sock_close libpjproject-i386-Win32-vc8-Debug.lib Error 30 error LNK2019: unresolved external symbol __imp__getpeername at 12 referenced in function _pj_sock_getpeername libpjproject-i386-Win32-vc8-Debug.lib Error 31 error LNK2019: unresolved external symbol __imp__getsockname at 12 referenced in function _pj_sock_getsockname libpjproject-i386-Win32-vc8-Debug.lib Error 32 error LNK2019: unresolved external symbol __imp__send at 16referenced in function _pj_sock_send libpjproject-i386-Win32-vc8-Debug.lib Error 33 error LNK2019: unresolved external symbol __imp__sendto at 24referenced in function _pj_sock_sendto libpjproject-i386-Win32-vc8-Debug.lib Error 34 error LNK2019: unresolved external symbol __imp__recv at 16referenced in function _pj_sock_recv libpjproject-i386-Win32-vc8-Debug.lib Error 35 error LNK2019: unresolved external symbol __imp__recvfrom at 24referenced in function _pj_sock_recvfrom libpjproject-i386-Win32-vc8-Debug.lib Error 36 error LNK2019: unresolved external symbol __imp__getsockopt at 20 referenced in function _pj_sock_getsockopt libpjproject-i386-Win32-vc8-Debug.lib Error 37 error LNK2019: unresolved external symbol __imp__setsockopt at 20 referenced in function _pj_sock_setsockopt libpjproject-i386-Win32-vc8-Debug.lib Error 38 error LNK2019: unresolved external symbol __imp__connect at 12referenced in function _pj_sock_connect libpjproject-i386-Win32-vc8-Debug.lib Error 39 error LNK2019: unresolved external symbol __imp__shutdown at 8referenced in function _pj_sock_shutdown libpjproject-i386-Win32-vc8-Debug.lib Error 40 error LNK2019: unresolved external symbol __imp__listen at 8referenced in function _pj_sock_listen libpjproject-i386-Win32-vc8-Debug.lib Error 41 error LNK2019: unresolved external symbol __imp__accept at 12referenced in function _pj_sock_accept libpjproject-i386-Win32-vc8-Debug.lib Error 42 error LNK2019: unresolved external symbol __imp__WSAStartup at 8referenced in function _pj_init libpjproject-i386-Win32-vc8-Debug.lib Error 43 error LNK2019: unresolved external symbol __imp__WSACleanup at 0referenced in function _pj_shutdown libpjproject-i386-Win32-vc8-Debug.lib Error 44 error LNK2019: unresolved external symbol __imp__WSASetLastError at 4 referenced in function _pj_set_netos_error libpjproject-i386-Win32-vc8-Debug.lib Error 45 error LNK2019: unresolved external symbol __imp__ioctlsocket at 12 referenced in function _pj_ioqueue_register_sock libpjproject-i386-Win32-vc8-Debug.lib Error 46 error LNK2019: unresolved external symbol __imp__gethostbyname at 4 referenced in function _pj_gethostbyname libpjproject-i386-Win32-vc8-Debug.lib Error 47 error LNK2019: unresolved external symbol ___WSAFDIsSet at 8referenced in function _PJ_FD_ISSET libpjproject-i386-Win32-vc8-Debug.lib Error 48 error LNK2019: unresolved external symbol __imp__select at 20referenced in function _pj_sock_select libpjproject-i386-Win32-vc8-Debug.lib Error 49 fatal error LNK1120: 32 unresolved externals I guess is the issue to nton and pj_sock library Please help. Thanks. -- Linux -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091002/631ee3d0/attachment.html>