Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Installation, Compiling and Running of theide » Linking issue with U 5418 and MSC9
Re: Linking issue with U 5418 and MSC9 [message #37516 is a reply to message #37515] Sat, 13 October 2012 18:19 Go to previous message
BioBytes is currently offline  BioBytes
Messages: 310
Registered: October 2008
Location: France
Senior Member
Hello Mirek,

Thank for considering this issue. I just updated my system to U5424 this morning. All is perfect with MSC10 but I still have the linking error as described below when compiling the example "Button" supplied with UPP and MSC9:


Button.cpp
Button: 1 file(s) built in (0:07.34), 7343 msecs / file, duration = 7359 msecs
Linking...
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall WSAGetLastError(v
	oid)" (__imp_?WSAGetLastError@@YGHXZ) referenced in function "private: static int __cdecl Upp::TcpSocket:
	:GetErrorCode(void)" (?GetErrorCode@TcpSocket@Upp@@CAHXZ)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall WSAStartup(unsign
	ed short,struct WSAData *)" (__imp_?WSAStartup@@YGHGPAUWSAData@@@Z) referenced in function "void __cdecl 
	Upp::TcpSocketInit(void)" (?TcpSocketInit@Upp@@YAXXZ)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall ioctlsocket(unsig
	ned int,long,unsigned long *)" (__imp_?ioctlsocket@@YGHIJPAK@Z) referenced in function "private: bool __t
	hiscall Upp::TcpSocket::SetupSocket(void)" (?SetupSocket@TcpSocket@Upp@@AAE_NXZ)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned int __stdcall socket(i
	nt,int,int)" (__imp_?socket@@YGIHHH@Z) referenced in function "private: bool __thiscall Upp::TcpSocket::O
	pen(int,int,int)" (?Open@TcpSocket@Upp@@AAE_NHHH@Z)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall listen(unsigned i
	nt,int)" (__imp_?listen@@YGHIH@Z) referenced in function "public: bool __thiscall Upp::TcpSocket::Listen(
	int,int,bool,bool)" (?Listen@TcpSocket@Upp@@QAE_NHH_N0@Z)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall bind(unsigned int
	,struct sockaddr const *,int)" (__imp_?bind@@YGHIPBUsockaddr@@H@Z) referenced in function "public: bool _
	_thiscall Upp::TcpSocket::Listen(int,int,bool,bool)" (?Listen@TcpSocket@Upp@@QAE_NHH_N0@Z)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall setsockopt(unsign
	ed int,int,int,char const *,int)" (__imp_?setsockopt@@YGHIHHPBDH@Z) referenced in function "public: bool 
	__thiscall Upp::TcpSocket::Listen(int,int,bool,bool)" (?Listen@TcpSocket@Upp@@QAE_NHH_N0@Z)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned long __stdcall htonl(u
	nsigned long)" (__imp_?htonl@@YGKK@Z) referenced in function "public: bool __thiscall Upp::TcpSocket::Lis
	ten(int,int,bool,bool)" (?Listen@TcpSocket@Upp@@QAE_NHH_N0@Z)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned short __stdcall htons(
	unsigned short)" (__imp_?htons@@YGGG@Z) referenced in function "public: bool __thiscall Upp::TcpSocket::L
	isten(int,int,bool,bool)" (?Listen@TcpSocket@Upp@@QAE_NHH_N0@Z)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned int __stdcall accept(u
	nsigned int,struct sockaddr *,int *)" (__imp_?accept@@YGIIPAUsockaddr@@PAH@Z) referenced in function "pub
	lic: bool __thiscall Upp::TcpSocket::Accept(class Upp::TcpSocket &)" (?Accept@TcpSocket@Upp@@QAE_NAAV12@@
	Z)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) char * __stdcall inet_ntoa(stru
	ct in_addr)" (__imp_?inet_ntoa@@YGPADUin_addr@@@Z) referenced in function "public: class Upp::String __th
	iscall Upp::TcpSocket::GetPeerAddr(void)const " (?GetPeerAddr@TcpSocket@Upp@@QBE?AVString@2@XZ)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall getpeername(unsig
	ned int,struct sockaddr *,int *)" (__imp_?getpeername@@YGHIPAUsockaddr@@PAH@Z) referenced in function "pu
	blic: class Upp::String __thiscall Upp::TcpSocket::GetPeerAddr(void)const " (?GetPeerAddr@TcpSocket@Upp@@
	QBE?AVString@2@XZ)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall connect(unsigned 
	int,struct sockaddr const *,int)" (__imp_?connect@@YGHIPBUsockaddr@@H@Z) referenced in function "private:
	 bool __thiscall Upp::TcpSocket::RawConnect(struct addrinfo *)" (?RawConnect@TcpSocket@Upp@@AAE_NPAUaddri
	nfo@@@Z)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall closesocket(unsig
	ned int)" (__imp_?closesocket@@YGHI@Z) referenced in function "private: void __thiscall Upp::TcpSocket::R
	awClose(void)" (?RawClose@TcpSocket@Upp@@AAEXXZ)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall send(unsigned int
	,char const *,int,int)" (__imp_?send@@YGHIPBDHH@Z) referenced in function "private: int __thiscall Upp::T
	cpSocket::RawSend(void const *,int)" (?RawSend@TcpSocket@Upp@@AAEHPBXH@Z)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall shutdown(unsigned
	 int,int)" (__imp_?shutdown@@YGHIH@Z) referenced in function "public: void __thiscall Upp::TcpSocket::Shu
	tdown(void)" (?Shutdown@TcpSocket@Upp@@QAEXXZ)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall gethostname(char 
	*,int)" (__imp_?gethostname@@YGHPADH@Z) referenced in function "public: static class Upp::String __cdecl 
	Upp::TcpSocket::GetHostName(void)" (?GetHostName@TcpSocket@Upp@@SA?AVString@2@XZ)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall select(int,struct
	 fd_set *,struct fd_set *,struct fd_set *,struct timeval const *)" (__imp_?select@@YGHHPAUfd_set@@00PBUti
	meval@@@Z) referenced in function "private: bool __thiscall Upp::TcpSocket::RawWait(unsigned long,int)" (
	?RawWait@TcpSocket@Upp@@AAE_NKH@Z)
Socket.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall recv(unsigned int
	,char *,int,int)" (__imp_?recv@@YGHIPADHH@Z) referenced in function "private: int __thiscall Upp::TcpSock
	et::RawRecv(void *,int)" (?RawRecv@TcpSocket@Upp@@AAEHPAXH@Z)
Socket.obj : error LNK2019: unresolved external symbol "int __stdcall __WSAFDIsSet(unsigned int,struct fd_set
	 *)" (?__WSAFDIsSet@@YGHIPAUfd_set@@@Z) referenced in function "public: unsigned long __thiscall Upp::Soc
	ketWaitEvent::Get(int)const " (?Get@SocketWaitEvent@Upp@@QBEKH@Z)
D:\Fichiers Patrick\Projets Ultimate\Out\Exemples\MSC9.Debug.Debug_Full.Gui\Button.exe : fatal error LNK1120:
	 20 unresolved externals

There were errors. (2:45.40)



I checked that WS2_32.lib is well present in "C:/Program Files/MicrosoftSDKs/Windows/v6.1/lib/".

I saw that in "Socket.cpp" file in Core package that there is a pragma directive for ws2_32.lib.


#ifdef PLATFORM_WIN32
#pragma comment(lib, "ws2_32.lib")
#endif



Do you think this could cause problem with MSC9 linker?

Regards

Biobytes
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Missing dependency for ide/Common
Next Topic: programming in eclipse -> compiling in theide command line
Goto Forum:
  


Current Time: Mon Jun 16 21:57:29 CEST 2025

Total time taken to generate the page: 0.04214 seconds