FrozenKiller
Member
|
[SOLVED]Compile Error
Hello, first time here!
I am trying to compile a new project from scratch in VC++ 2010 Express, and I can't seem to get my linking right :S. I have linked to all the .lib files in the Installation directory, but I am still getting strange compile errors:
Code:
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>EsenthelEngine.lib(Input.obj) : error LNK2019: unresolved external symbol _ImmGetOpenStatus@4 referenced in function "public: bool __thiscall EE::Keyboard::immNative(void)" (?immNative@Keyboard@EE@@QAE_NXZ)
1>EsenthelEngine.lib(Input.obj) : error LNK2019: unresolved external symbol _ImmSetConversionStatus@12 referenced in function "public: void __thiscall EE::Keyboard::immNative(bool)" (?immNative@Keyboard@EE@@QAEX_N@Z)
1>EsenthelEngine.lib(Input.obj) : error LNK2019: unresolved external symbol _ImmGetConversionStatus@12 referenced in function "public: void __thiscall EE::Keyboard::immNative(bool)" (?immNative@Keyboard@EE@@QAEX_N@Z)
1>EsenthelEngine.lib(Input.obj) : error LNK2019: unresolved external symbol _ImmSetOpenStatus@8 referenced in function "public: void __thiscall EE::Keyboard::immNative(bool)" (?immNative@Keyboard@EE@@QAEX_N@Z)
1>EsenthelEngine.lib(Input.obj) : error LNK2019: unresolved external symbol _ImmGetContext@4 referenced in function "public: bool __thiscall EE::Keyboard::imm(void)" (?imm@Keyboard@EE@@QAE_NXZ)
1>EsenthelEngine.lib(Windows.obj) : error LNK2001: unresolved external symbol _ImmGetContext@4
1>EsenthelEngine.lib(Input.obj) : error LNK2019: unresolved external symbol _ImmAssociateContext@8 referenced in function "public: void __thiscall EE::Keyboard::imm(bool)" (?imm@Keyboard@EE@@QAEX_N@Z)
1>EsenthelEngine.lib(Misc.obj) : error LNK2019: unresolved external symbol __imp__UuidCreate@4 referenced in function "public: void __thiscall EE::UID::randomize(void)" (?randomize@UID@EE@@QAEXXZ)
1>EsenthelEngine.lib(Timer.obj) : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: float __thiscall EE::TimeClass::curTime(void)" (?curTime@TimeClass@EE@@QAEMXZ)
1>EsenthelEngine.lib(Windows.obj) : error LNK2019: unresolved external symbol _ImmGetCompositionStringW@16 referenced in function "long __stdcall EE::WindowMsg(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowMsg@EE@@YGJPAUHWND__@@IIJ@Z)
1>EsenthelEngine.lib(Process.obj) : error LNK2019: unresolved external symbol _GetModuleFileNameExW@16 referenced in function "struct EE::Str16 __cdecl EE::ProcName(unsigned int)" (?ProcName@EE@@YA?AUStr16@1@I@Z)
1>EsenthelEngine.lib(Process.obj) : error LNK2019: unresolved external symbol _EnumProcessModules@16 referenced in function "struct EE::Str16 __cdecl EE::ProcName(unsigned int)" (?ProcName@EE@@YA?AUStr16@1@I@Z)
1>EsenthelEngine.lib(Process.obj) : error LNK2019: unresolved external symbol _EnumProcesses@12 referenced in function "void __cdecl EE::ProcList(struct EE::Memc<unsigned int> &)" (?ProcList@EE@@YAXAAU?$Memc@I@1@@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__ntohs@4 referenced in function "public: int __thiscall EE::SockAddr::port(void)" (?port@SockAddr@EE@@QAEHXZ)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__htons@4 referenced in function "public: struct EE::SockAddr & __thiscall EE::SockAddr::port(int)" (?port@SockAddr@EE@@QAEAAU12@H@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__getsockname@12 referenced in function "public: bool __thiscall EE::SockAddr::setFrom(struct EE::Socket &)" (?setFrom@SockAddr@EE@@QAE_NAAUSocket@2@@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__bind@12 referenced in function "public: bool __thiscall EE::Socket::bind(struct EE::SockAddr &)" (?bind@Socket@EE@@QAE_NAAUSockAddr@2@@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__connect@12 referenced in function "public: bool __thiscall EE::Socket::connect(struct EE::SockAddr &)" (?connect@Socket@EE@@QAE_NAAUSockAddr@2@@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__listen@8 referenced in function "public: bool __thiscall EE::Socket::listen(void)" (?listen@Socket@EE@@QAE_NXZ)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__send@16 referenced in function "public: int __thiscall EE::Socket::send(void *,int)" (?send@Socket@EE@@QAEHPAXH@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__recv@16 referenced in function "public: int __thiscall EE::Socket::receive(void *,int)" (?receive@Socket@EE@@QAEHPAXH@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__sendto@24 referenced in function "public: int __thiscall EE::Socket::send(struct EE::SockAddr &,void *,int)" (?send@Socket@EE@@QAEHAAUSockAddr@2@PAXH@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__recvfrom@24 referenced in function "public: int __thiscall EE::Socket::receive(struct EE::SockAddr &,void *,int)" (?receive@Socket@EE@@QAEHAAUSockAddr@2@PAXH@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__WSACleanup@0 referenced in function "void __cdecl EE::ShutSocket(void)" (?ShutSocket@EE@@YAXXZ)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__inet_addr@4 referenced in function "public: struct EE::SockAddr & __thiscall EE::SockAddr::ip(struct EE::Str8)" (?ip@SockAddr@EE@@QAEAAU12@UStr8@2@@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__freeaddrinfo@4 referenced in function "public: bool __thiscall EE::SockAddr::setHost(struct EE::Str16,int)" (?setHost@SockAddr@EE@@QAE_NUStr16@2@H@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__getaddrinfo@16 referenced in function "public: bool __thiscall EE::SockAddr::setHost(struct EE::Str16,int)" (?setHost@SockAddr@EE@@QAE_NUStr16@2@H@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__htonl@4 referenced in function "public: struct EE::SockAddr & __thiscall EE::SockAddr::setServer(int)" (?setServer@SockAddr@EE@@QAEAAU12@H@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function "public: void __thiscall EE::Socket::del(void)" (?del@Socket@EE@@QAEXXZ)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__socket@12 referenced in function "public: bool __thiscall EE::Socket::createTcp(void)" (?createTcp@Socket@EE@@QAE_NXZ)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__ioctlsocket@12 referenced in function "public: bool __thiscall EE::Socket::block(bool)" (?block@Socket@EE@@QAE_N_N@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__accept@12 referenced in function "public: bool __thiscall EE::Socket::accept(struct EE::Socket &,struct EE::SockAddr &)" (?accept@Socket@EE@@QAE_NAAU12@AAUSockAddr@2@@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__select@20 referenced in function "public: bool __thiscall EE::Socket::wait(int)" (?wait@Socket@EE@@QAE_NH@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__getnameinfo@28 referenced in function "bool __cdecl EE::InitSocket(void)" (?InitSocket@EE@@YA_NXZ)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__WSAStartup@8 referenced in function "bool __cdecl EE::InitSocket(void)" (?InitSocket@EE@@YA_NXZ)
1>EsenthelEngine.lib(App Volume.obj) : error LNK2019: unresolved external symbol __imp__mixerClose@4 referenced in function "public: void __thiscall EE::AppVolumeClass::del(void)" (?del@AppVolumeClass@EE@@QAEXXZ)
1>EsenthelEngine.lib(App Volume.obj) : error LNK2019: unresolved external symbol __imp__mixerGetLineControlsW@12 referenced in function "public: bool __thiscall EE::AppVolumeClass::create(void)" (?create@AppVolumeClass@EE@@QAE_NXZ)
1>EsenthelEngine.lib(App Volume.obj) : error LNK2019: unresolved external symbol __imp__mixerGetLineInfoW@12 referenced in function "public: bool __thiscall EE::AppVolumeClass::create(void)" (?create@AppVolumeClass@EE@@QAE_NXZ)
1>EsenthelEngine.lib(App Volume.obj) : error LNK2019: unresolved external symbol __imp__mixerOpen@20 referenced in function "public: bool __thiscall EE::AppVolumeClass::create(void)" (?create@AppVolumeClass@EE@@QAE_NXZ)
1>EsenthelEngine.lib(App Volume.obj) : error LNK2019: unresolved external symbol __imp__mixerSetControlDetails@12 referenced in function "public: void __thiscall EE::AppVolumeClass::volume(float)" (?volume@AppVolumeClass@EE@@QAEXM@Z)
1>EsenthelEngine.lib(App Volume.obj) : error LNK2019: unresolved external symbol __imp__mixerGetControlDetailsW@12 referenced in function "public: float __thiscall EE::AppVolumeClass::volume(void)" (?volume@AppVolumeClass@EE@@QAEMXZ)
Any advice greatly appreciated !
(This post was last modified: 09-15-2010 11:25 AM by FrozenKiller.)
|
|
09-15-2010 10:31 AM |
|
Dynad
Member
|
RE: Compile Error
Hi,
Well what you can do is: go to property -> C/C++ -> General -> Additional Include Directories and add EsenthelEngineSDK\Installation map to the list.
This should fix your problem.
~Dynad
There is always evil somewhere, you just have to look for it properly.
|
|
09-15-2010 11:02 AM |
|
FrozenKiller
Member
|
RE: Compile Error
Thanks for your reply, but I found my solution already. I had to add a couple more .lib files to my Additional Dependencies.
P.S Thank you for super-speedy reply! Great support!
|
|
09-15-2010 11:24 AM |
|