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
Linking issue with U 5418 and MSC9 [message #37483] Wed, 10 October 2012 21:46 Go to next message
BioBytes is currently offline  BioBytes
Messages: 284
Registered: October 2008
Location: France
Experienced Member
Hi friends,

I would like to notify that if last nightly build U5418 compiles and links perfectly with MSC10, there is an issue with MSC9 : the libraries compiles well but I got the following message errors when linking...

DocManager: 2 file(s) built in (0:16.87), 8437 msecs / file, duration = 17156 msecs
Linking...
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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)
$blitz.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\Mes Projets\MSC9.Debug.Debug_Full.Gui\DocManager.exe : fatal error L
	NK1120: 20 unresolved externals

There were errors. (5:59.92)



It seems that there is some kind of incompatibility between MSC9 headers and cpp files and UPP TcpSocket functions.

Have an idea to solve it or must we give up MSC9 compiler to move to MSC10 for future releases of Ultimate++?

Thanks for reply

Cheers

Biobytes
Re: Linking issue with U 5418 and MSC9 [message #37508 is a reply to message #37483] Fri, 12 October 2012 10:21 Go to previous messageGo to next message
BioBytes is currently offline  BioBytes
Messages: 284
Registered: October 2008
Location: France
Experienced Member
Just to add that the linking problem with MSC9 is still consistent with new nigihtly build U5421.

Have a nice WE Smile

Regards

Biobytes
Re: Linking issue with U 5418 and MSC9 [message #37509 is a reply to message #37508] Fri, 12 October 2012 10:47 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12106
Registered: November 2005
Ultimate Member
Can you try now (latest svn, "Core: ws2_32.lib added")?

Mirek
Re: Linking issue with U 5418 and MSC9 [message #37510 is a reply to message #37509] Fri, 12 October 2012 19:21 Go to previous messageGo to next message
BioBytes is currently offline  BioBytes
Messages: 284
Registered: October 2008
Location: France
Experienced Member
Thanks Mirek for support

I tried to ws2_32.lib in Core.upp as described in svn r5422 and I got the same linkage error with MSC9.Find hererafter the captured image of the core package organizer after having modified the core.upp in uppscr directory.

http://img4.hostingpics.net/pics/237356Capture02.jpg

Hope this is readable

Biobytes

[Updated on: Fri, 12 October 2012 19:39]

Report message to a moderator

Re: Linking issue with U 5418 and MSC9 [message #37515 is a reply to message #37510] Sat, 13 October 2012 11:27 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12106
Registered: November 2005
Ultimate Member
Well, I have tried fresh install and it seems OK...

Can you check that you have ws2_32.lib installed?

Mirek
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: 284
Registered: October 2008
Location: France
Experienced 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
Previous Topic: Missing dependency for ide/Common
Next Topic: programming in eclipse -> compiling in theide command line
Goto Forum:
  


Current Time: Fri Nov 22 21:23:46 CET 2019

Total time taken to generate the page: 0.01077 seconds