Ashaira
Member
|
Instalation and VC++ 2010
well i installed like i did on 2008 (which worked) but now when i just try and copy paste the code from the very first tutorial in an empty project i get this:
1>main.obj : error LNK2019: unresolved external symbol "void * __cdecl EE::Alloc(unsigned int)" (?Alloc@EE@@YAPAXI@Z) referenced in function "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
1>main.obj : error LNK2019: unresolved external symbol "void __cdecl EE::Free(void * &)" (?Free@EE@@YAXAAPAX@Z) referenced in function "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>main.obj : error LNK2019: unresolved external symbol "public: struct EE::PakSet & __thiscall EE::PakSet::add(struct EE::Str16,struct EE::Secure *,bool)" (?add@PakSet@EE@@QAEAAU12@UStr16@2@PAUSecure@2@_N@Z) referenced in function "void __cdecl InitPre(void)" (?InitPre@@YAXXZ)
1>main.obj : error LNK2001: unresolved external symbol "struct EE::PakSet EE::Paks" (?Paks@EE@@3UPakSet@1@A)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall EE::Application::name(struct EE::Str16,bool)" (?name@Application@EE@@QAEXUStr16@2@_N@Z) referenced in function "void __cdecl InitPre(void)" (?InitPre@@YAXXZ)
1>main.obj : error LNK2001: unresolved external symbol "struct EE::Application EE::App" (?App@EE@@3UApplication@1@A)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall EE::Str16::Str16(char const *)" (??0Str16@EE@@QAE@PBD@Z) referenced in function "void __cdecl InitPre(void)" (?InitPre@@YAXXZ)
1>main.obj : error LNK2001: unresolved external symbol "struct EE::Keyboard EE::Kb" (?Kb@EE@@3UKeyboard@1@A)
1>main.obj : error LNK2019: unresolved external symbol "public: static void __cdecl EE::Display::clear(struct EE::Color)" (?clear@Display@EE@@SAXUColor@2@@Z) referenced in function "void __cdecl Draw(void)" (?Draw@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol "public: static void __cdecl EE::DisplayDraw::text(struct EE::TextDS &,float,float,char const *,int)" (?text@DisplayDraw@EE@@SAXAAUTextDS@2@MMPBDH@Z) referenced in function "public: static void __cdecl EE::DisplayDraw::text(float,float,char const *,int)" (?text@DisplayDraw@EE@@SAXMMPBDH@Z)
1>main.obj : error LNK2001: unresolved external symbol "struct EE::TextDS EE::Text_ds" (?Text_ds@EE@@3UTextDS@1@A)
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>H:\test\Debug\test.exe : fatal error LNK1120: 12 unresolved externals
im still new to c++ but i couldn't figure out what the problem is. i included and linked all necesary files. i can't even make sense of what the errors mean. if this was posted before sry but after the first 6 pages in the search i gave up.
|
|
05-20-2010 05:38 PM |
|
Dynad
Member
|
RE: Instalation and VC++ 2010
This means u have to add the Esenthel lib files to your project.
Project configuration -> Linker -> Input -> Additional Dependencies -> add EsenthelEngine.lib
And make an windows application and not a console application.
Grtz,
~Dynad
There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 05-20-2010 05:46 PM by Dynad.)
|
|
05-20-2010 05:45 PM |
|
Ashaira
Member
|
RE: Instalation and VC++ 2010
hm. could have sworn i added the lib. ill try it thnx. also i was making a win app not console.
|
|
05-20-2010 07:15 PM |
|
Ashaira
Member
|
RE: Instalation and VC++ 2010
um now i get even more. :|
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::Timer::curTime(void)" (?curTime@Timer@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 _EnumProcesses@12 referenced in function "unsigned int __cdecl EE::ProcList(unsigned int * *)" (?ProcList@EE@@YAIPAPAI@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(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)
1>H:\test\Debug\test.exe : fatal error LNK1120: 40 unresolved externals
|
|
05-20-2010 08:25 PM |
|
Esenthel
Administrator
|
RE: Instalation and VC++ 2010
in documentation you will find how to configure project settings
|
|
05-20-2010 08:50 PM |
|
Ashaira
Member
|
RE: Instalation and VC++ 2010
did what u said it fixed almost everything but i get one error that i have never met before. 1>cl : Command line error D8016: '/ZI' and '/GL' command-line options are incompatible
|
|
05-20-2010 09:18 PM |
|
Driklyn
Member
|
RE: Instalation and VC++ 2010
I find that it's easiest to just upgrade the Tutorials project to 2010 and then just copy it to your game's folder and rename it to match. That's what I did.
|
|
05-20-2010 09:23 PM |
|
Ashaira
Member
|
RE: Instalation and VC++ 2010
(05-20-2010 09:23 PM)Driklyn Wrote: I find that it's easiest to just upgrade the Tutorials project to 2010 and then just copy it to your game's folder and rename it to match. That's what I did.
the thing is i want to try them in my own project. i learn a lot more when i use my own projects rather than rdy made ones.
|
|
05-20-2010 09:28 PM |
|
Esenthel
Administrator
|
RE: Instalation and VC++ 2010
|
|
05-20-2010 09:52 PM |
|
Ashaira
Member
|
RE: Instalation and VC++ 2010
ty. just wanted to let u know it worked after changing the settings several times. but ide recommend that everyone use vc++ 2008 unless they absolutelly HAVE to use 2010. its a lot easier.
|
|
05-21-2010 09:28 AM |
|
Driklyn
Member
|
RE: Instalation and VC++ 2010
I don't see how it would be easier.. shouldn't be any different.
|
|
05-21-2010 07:00 PM |
|