About Store Forum Documentation Contact
Donations:
158$/mo



Post Reply 
Unresolved external symbol error
Author Message
Nevadaes Offline
Member

Post: #1
Unresolved external symbol error
Hey everyone. I downloaded the SDK, to see how the engine was. So I followed some of the tutorials, to understnad how it worked, and then got into creating my own sample to see what I could do. So I create a new project (a Win32 project) and copied some folders, such as the "Data" folder and the "EsenthelEngine" folder, copied the stdafx.cpp and .h files, the resource.h file, the icon and resource.rc, added that to the solution, copied the first tutorial coded into a file named Main.cpp. I thought that everything would be alright to start, but then, I get 68 unresolved external symbol error such as:

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)

and the list goes on 67 more times. What is happenning here?
08-30-2009 02:03 AM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #2
Re: Unresolved external symbol error
Linking errors..
What I did: open up the tutorial solution, rightclick the project and configure.
Then go trough the different pages and edit yours to have the same.
08-30-2009 07:55 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
Re: Unresolved external symbol error
<!-- m --><a class="postlink" href="http://www.esenthel.com/wiki/index.php?title=Programming_Project_Settings">http://www.esenthel.com/wiki/index.php? ... t_Settings</a><!-- m -->
08-30-2009 11:19 AM
Find all posts by this user Quote this message in a reply
Nevadaes Offline
Member

Post: #4
Re: Unresolved external symbol error
Thanks it removed some of the errors, but I still get 35 unresolved link errors. And I tried to configure the exact same as the tutorial. Still got some errors.
08-30-2009 05:15 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #5
Re: Unresolved external symbol error
Some other things that are nót on that wiki page:

project properties>C/C++>precompiled header>create/use precompiled header: Use..
..>create/use PCH trough file: StdAfx.h
..>precompiled header file: $(IntDir)\$(TargetName).pch

In your project explorer window: header files>_>stdafx.cpp>rightclick>properties>precompiled headers: Create precompiled header!
08-30-2009 06:23 PM
Find all posts by this user Quote this message in a reply
Nevadaes Offline
Member

Post: #6
Re: Unresolved external symbol error
it really doesn't work. I don't really know what to do now... is it supposed to be a console project or a Win32 project with the "empty project" UNchecked?
08-31-2009 03:42 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #7
Re: Unresolved external symbol error
win32 project.

you can just copy the source "tutorial" folder to some other place on your disk.

if you got more errors just paste them here.
08-31-2009 09:41 AM
Find all posts by this user Quote this message in a reply
Nevadaes Offline
Member

Post: #8
Re: Unresolved external symbol error
Here are the last error I get. I double checked to make sure everything was correctly set, and still.

Code:
1>------ Build started: Project: Esenthel_Sample, Configuration: Debug Win32 ------
1>Linking...
1>EsenthelEngine.lib(Input.obj) : error LNK2019: unresolved external symbol _c_dfDIJoystick referenced in function "int __stdcall EE::EnumJoypads(struct DIDEVICEINSTANCEW const *,void *)" (?EnumJoypads@EE@@YGHPBUDIDEVICEINSTANCEW@@PAX@Z)
1>EsenthelEngine.lib(Input.obj) : error LNK2019: unresolved external symbol _c_dfDIMouse2 referenced in function "public: bool __thiscall EE::InputDevicesClass::create(void)" (?create@InputDevicesClass@EE@@QAE_NXZ)
1>EsenthelEngine.lib(Input.obj) : error LNK2019: unresolved external symbol _c_dfDIKeyboard referenced in function "public: bool __thiscall EE::InputDevicesClass::create(void)" (?create@InputDevicesClass@EE@@QAE_NXZ)
1>EsenthelEngine.lib(Input.obj) : error LNK2019: unresolved external symbol _GUID_SysMouse referenced in function "public: bool __thiscall EE::InputDevicesClass::create(void)" (?create@InputDevicesClass@EE@@QAE_NXZ)
1>EsenthelEngine.lib(Input.obj) : error LNK2019: unresolved external symbol _GUID_SysKeyboard referenced in function "public: bool __thiscall EE::InputDevicesClass::create(void)" (?create@InputDevicesClass@EE@@QAE_NXZ)
1>EsenthelEngine.lib(Input.obj) : error LNK2019: unresolved external symbol _DirectInput8Create@20 referenced in function "public: bool __thiscall EE::InputDevicesClass::create(void)" (?create@InputDevicesClass@EE@@QAE_NXZ)
1>EsenthelEngine.lib(Input.obj) : error LNK2019: unresolved external symbol _IID_IDirectInput8W referenced in function "public: bool __thiscall EE::InputDevicesClass::create(void)" (?create@InputDevicesClass@EE@@QAE_NXZ)
1>EsenthelEngine.lib(Display.obj) : error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "public: bool __thiscall EE::Display::create(void)" (?create@Display@EE@@QAE_NXZ)
1>EsenthelEngine.lib(Sound Buffer.obj) : error LNK2019: unresolved external symbol _IID_IDirectSound3DBuffer referenced in function "public: bool __thiscall EE::SoundBuffer::create(int,int,int,int,unsigned int)" (?create@SoundBuffer@EE@@QAE_NHHHHI@Z)
1>EsenthelEngine.lib(Sound Buffer.obj) : error LNK2019: unresolved external symbol _DS3DALG_NO_VIRTUALIZATION referenced in function "public: bool __thiscall EE::SoundBuffer::create(int,int,int,int,unsigned int)" (?create@SoundBuffer@EE@@QAE_NHHHHI@Z)
1>EsenthelEngine.lib(Sound Buffer.obj) : error LNK2019: unresolved external symbol _DS3DALG_HRTF_LIGHT referenced in function "public: bool __thiscall EE::SoundBuffer::create(int,int,int,int,unsigned int)" (?create@SoundBuffer@EE@@QAE_NHHHHI@Z)
1>EsenthelEngine.lib(Sound Buffer.obj) : error LNK2019: unresolved external symbol _DS3DALG_HRTF_FULL referenced in function "public: bool __thiscall EE::SoundBuffer::create(int,int,int,int,unsigned int)" (?create@SoundBuffer@EE@@QAE_NHHHHI@Z)
1>EsenthelEngine.lib(Sound Buffer.obj) : error LNK2019: unresolved external symbol _IID_IDirectSound3DListener referenced in function "public: bool __thiscall EE::ListenerControl::create(void)" (?create@ListenerControl@EE@@QAE_NXZ)
1>EsenthelEngine.lib(Sound Buffer.obj) : error LNK2019: unresolved external symbol _DirectSoundCreate@12 referenced in function "bool __cdecl EE::InitSound(void)" (?InitSound@EE@@YA_NXZ)
1>EsenthelEngine.lib(Image.obj) : error LNK2019: unresolved external symbol _D3DXFilterTexture@16 referenced in function "public: struct EE::Image & __thiscall EE::Image::updateMipMaps(void)" (?updateMipMaps@Image@EE@@QAEAAU12@XZ)
1>EsenthelEngine.lib(Image.obj) : error LNK2019: unresolved external symbol _D3DXLoadSurfaceFromSurface@32 referenced in function "public: bool __thiscall EE::Image::copyTry(struct EE::Image &,int,int,int,int,int,bool)" (?copyTry@Image@EE@@QAE_NAAU12@HHHHH_N@Z)
1>EsenthelEngine.lib(Image Io.obj) : error LNK2001: unresolved external symbol _D3DXLoadSurfaceFromSurface@32
1>EsenthelEngine.lib(Shader Main.obj) : error LNK2019: unresolved external symbol _D3DXCreateEffectPool@4 referenced in function "public: void __thiscall EE::MainShaderClass::create(void)" (?create@MainShaderClass@EE@@QAEXXZ)
1>EsenthelEngine.lib(Display State.obj) : error LNK2019: unresolved external symbol _D3DXPlaneTransform@12 referenced in function "public: static void __cdecl EE::DisplayState::clipPlane(struct EE::Plane &,unsigned char)" (?clipPlane@DisplayState@EE@@SAXAAUPlane@2@E@Z)
1>EsenthelEngine.lib(Display State.obj) : error LNK2019: unresolved external symbol _D3DXMatrixTranspose@8 referenced in function "public: static void __cdecl EE::DisplayState::clipPlane(struct EE::Plane &,unsigned char)" (?clipPlane@DisplayState@EE@@SAXAAUPlane@2@E@Z)
1>EsenthelEngine.lib(Display State.obj) : error LNK2019: unresolved external symbol _D3DXMatrixInverse@12 referenced in function "public: static void __cdecl EE::DisplayState::clipPlane(struct EE::Plane &,unsigned char)" (?clipPlane@DisplayState@EE@@SAXAAUPlane@2@E@Z)
1>EsenthelEngine.lib(Image Io.obj) : error LNK2019: unresolved external symbol _D3DXSaveSurfaceToFileW@20 referenced in function "public: bool __thiscall EE::Image::ExportDX(struct EE::Str16,enum _D3DXIMAGE_FILEFORMAT)" (?ExportDX@Image@EE@@QAE_NUStr16@2@W4_D3DXIMAGE_FILEFORMAT@@@Z)
1>EsenthelEngine.lib(Image Io.obj) : error LNK2019: unresolved external symbol _D3DXLoadSurfaceFromFileW@32 referenced in function "public: bool __thiscall EE::Image::ImportDX(struct EE::Str16,int,int,int,bool)" (?ImportDX@Image@EE@@QAE_NUStr16@2@HHH_N@Z)
1>EsenthelEngine.lib(Image Io.obj) : error LNK2019: unresolved external symbol _D3DXLoadSurfaceFromFileInMemory@36 referenced in function "public: bool __thiscall EE::Image::ImportDX(struct EE::Str16,int,int,int,bool)" (?ImportDX@Image@EE@@QAE_NUStr16@2@HHH_N@Z)
1>EsenthelEngine.lib(Image Io.obj) : error LNK2019: unresolved external symbol _D3DXGetImageInfoFromFileW@8 referenced in function "public: bool __thiscall EE::Image::ImportDX(struct EE::Str16,int,int,int,bool)" (?ImportDX@Image@EE@@QAE_NUStr16@2@HHH_N@Z)
1>EsenthelEngine.lib(Image Io.obj) : error LNK2019: unresolved external symbol _D3DXGetImageInfoFromFileInMemory@12 referenced in function "public: bool __thiscall EE::Image::ImportDX(struct EE::Str16,int,int,int,bool)" (?ImportDX@Image@EE@@QAE_NUStr16@2@HHH_N@Z)
1>EsenthelEngine.lib(Image Io.obj) : error LNK2019: unresolved external symbol _D3DXCreateTextureFromFileExW@56 referenced in function "public: bool __thiscall EE::Image::ImportDX(struct EE::Str16,int,int,int,bool)" (?ImportDX@Image@EE@@QAE_NUStr16@2@HHH_N@Z)
1>EsenthelEngine.lib(Image Io.obj) : error LNK2019: unresolved external symbol _D3DXCreateTextureFromFileInMemoryEx@60 referenced in function "public: bool __thiscall EE::Image::ImportDX(struct EE::Str16,int,int,int,bool)" (?ImportDX@Image@EE@@QAE_NUStr16@2@HHH_N@Z)
1>EsenthelEngine.lib(Mesh Render.obj) : error LNK2019: unresolved external symbol _D3DXCreateMesh@24 referenced in function "public: bool __thiscall EE::Mshr::create(int,int,unsigned int,bool)" (?create@Mshr@EE@@QAE_NHHI_N@Z)
1>EsenthelEngine.lib(Mesh Io.obj) : error LNK2001: unresolved external symbol _D3DXCreateMesh@24
1>EsenthelEngine.lib(Shader.obj) : error LNK2019: unresolved external symbol _D3DXCreateEffect@36 referenced in function "public: bool __thiscall EE::Shader::load(void *,unsigned int)" (?load@Shader@EE@@QAE_NPAXI@Z)
1>EsenthelEngine.lib(Mesh Io.obj) : error LNK2019: unresolved external symbol _D3DXLoadMeshFromXW@32 referenced in function "public: bool __thiscall EE::Mesh::ImportX(struct EE::Str16)" (?ImportX@Mesh@EE@@QAE_NUStr16@2@@Z)
1>EsenthelEngine.lib(Mesh Io.obj) : error LNK2019: unresolved external symbol _D3DXSaveMeshToXW@28 referenced in function "public: bool __thiscall EE::Mesh::ExportX(struct EE::Str16,bool)" (?ExportX@Mesh@EE@@QAE_NUStr16@2@_N@Z)
1>Esenthel_Sample.exe : fatal error LNK1120: 31 unresolved externals

Those are all the remaining error. At least, it dropped from 68 errors to 34 pfft
08-31-2009 01:50 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #9
Re: Unresolved external symbol error
are you using latest EE version?
have you copied EE lib and headers to the VS folder just like in instalattion instructions?
08-31-2009 02:29 PM
Find all posts by this user Quote this message in a reply
Nevadaes Offline
Member

Post: #10
Re: Unresolved external symbol error
Yes I have copied the required files in the correct folders; I double checked that as well. For the version, I'm not sure though. I think I do, but I'll download the SDK once again on the wiki, just to be sure.
08-31-2009 02:42 PM
Find all posts by this user Quote this message in a reply
Nevadaes Offline
Member

Post: #11
Re: Unresolved external symbol error
I downloaded the newest version, aka, a fresh download link from the wiki. Still no positive results; still 35 errors coming out staring at me.
09-02-2009 02:39 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #12
Re: Unresolved external symbol error
but does the tutorials compile ok?
09-02-2009 11:32 AM
Find all posts by this user Quote this message in a reply
Nevadaes Offline
Member

Post: #13
Re: Unresolved external symbol error
Yeah, they do. At the moment I'm coding exclusively in the tutorials solution file, but I want to create my own solution file for my personal project. But every files from the .sln file compiles. I tried to create a solution like the tutorial's but if I recall correctly, it didn't give much results other than... errors.
09-02-2009 06:42 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #14
Re: Unresolved external symbol error
you can just copy the whole SDK, and rename it as "your project" instead of "EsenthelEngineSDK" wink

if the tutorials work fine, then im sure its just problem with setting the project configuration settings
09-02-2009 06:43 PM
Find all posts by this user Quote this message in a reply
Nevadaes Offline
Member

Post: #15
Re: Unresolved external symbol error
ok, I'll try to rename the SDK from its very root :O lol no seriously, I'll give it a few more tries. I do think so that the problem comes from my side; probably something I didn't do correctly. I'll just copy and paste a few things for the configuration. Thanks for your help, I'll let you know if I achieve something.
09-02-2009 07:03 PM
Find all posts by this user Quote this message in a reply
Post Reply