Author Topic: Buidling AppUpdater in MSVC 7.1  (Read 764 times)

Adonis

  • Wayfarer
  • *
  • Posts: 1
    • View Profile
Buidling AppUpdater in MSVC 7.1
« on: September 08, 2004, 08:48:00 pm »
When I\'m trying to build the latest CVS on CS, Planeshift, and CEL, I get a linking error in Planeshift when I\'m trying to build the \"AppUpdater\" project.  I think the problem has something to do with the first warning, but when I resolved it with using the instructions in a MSDN article ( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/lnk4098.asp ), I still got the same linking errors.  Has anyone had this problem before or know how to resolve it?  Thanks


Linking...
LINK : warning LNK4098: defaultlib \'MSVCRTD\' conflicts with use of other libs; use /NODEFAULTLIB:library
libpsnet.lib(connection.obj) : error LNK2019: unresolved external symbol _htons@4 referenced in function \"public: bool __thiscall psNetConnection::Connect(char const *,int)\" (?Connect@psNetConnection@@QAE_NPBDH@Z)
libpsnet.lib(netbase.obj) : error LNK2001: unresolved external symbol _htons@4
libpsnet.lib(netbase.obj) : error LNK2019: unresolved external symbol _ioctlsocket@12 referenced in function \"protected: bool __thiscall NetBase::Init(bool)\" (?Init@NetBase@@IAE_N_N@Z)
libpsnet.lib(netbase.obj) : error LNK2019: unresolved external symbol _socket@12 referenced in function \"protected: bool __thiscall NetBase::Init(bool)\" (?Init@NetBase@@IAE_N_N@Z)
libpsnet.lib(netbase.obj) : error LNK2019: unresolved external symbol _inet_addr@4 referenced in function \"public: bool __thiscall NetBase::Bind(char const *,int)\" (?Bind@NetBase@@QAE_NPBDH@Z)
libpsnet.lib(netbase.obj) : error LNK2019: unresolved external symbol _bind@12 referenced in function \"public: bool __thiscall NetBase::Bind(int,int)\" (?Bind@NetBase@@QAE_NHH@Z)
libpsnet.lib(netbase.obj) : error LNK2019: unresolved external symbol _closesocket@4 referenced in function \"protected: void __thiscall NetBase::Close(bool)\" (?Close@NetBase@@IAEX_N@Z)
libpsnet.lib(netbase.obj) : error LNK2019: unresolved external symbol _select@20 referenced in function \"protected: int __thiscall NetBase::SendTo(struct sockaddr_in *,void const *,unsigned int)\" (?SendTo@NetBase@@IAEHPAUsockaddr_in@@PBXI@Z)
libpsnet.lib(netbase.obj) : error LNK2019: unresolved external symbol _sendto@24 referenced in function \"protected: int __thiscall NetBase::SendTo(struct sockaddr_in *,void const *,unsigned int)\" (?SendTo@NetBase@@IAEHPAUsockaddr_in@@PBXI@Z)
libpsnet.lib(netbase.obj) : error LNK2019: unresolved external symbol _recvfrom@24 referenced in function \"protected: int __thiscall NetBase::RecvFrom(struct sockaddr_in *,int *,void *,unsigned int)\" (?RecvFrom@NetBase@@IAEHPAUsockaddr_in@@PAHPAXI@Z)
libpsnet.lib(netbase.obj) : error LNK2019: unresolved external symbol _gethostbyname@4 referenced in function \"protected: int __thiscall NetBase::GetIPByName(struct sockaddr_in *,char const *)\" (?GetIPByName@NetBase@@IAEHPAUsockaddr_in@@PBD@Z)
libpsnet.lib(netbase.obj) : error LNK2019: unresolved external symbol _WSAStartup@8 referenced in function \"int __cdecl initSocket(void)\" (?initSocket@@YAHXZ)
libpsnet.lib(netbase.obj) : error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function \"void __cdecl exitSocket(void)\" (?exitSocket@@YAXXZ)
psbuild\\release\\temp\\appupdater\\updater.exe : fatal error LNK1120: 12 unresolved externals

Androgos

  • Guest
(No subject)
« Reply #1 on: September 11, 2004, 03:44:00 am »
Just add winsock to the linking libs