About Store Forum Documentation Contact



Post Reply 
Linking errors :S
Author Message
Finjuri Offline
Member

Post: #1
Linking errors :S
Yes, linking errors again.
This is my code(the basic tutorial) :
Code:
#include "stdafx.h" // Header and libs here

  void InitPre() // init before engine inits
  {
     // here you will have to setup initial engine settings
     // like application name, its options, screen resolution...
  
     App.name("Start");            // application name
     App.icon=(Char*)IDI_ICON1;    // setup icon
     App.flag=APP_NO_FX;           // set APP_NO_FX option to tell engine to load only basic drawing methods (no 3d and special effects)
     PakAdd("../data/engine.pak"); // load engine data
  }
  
  /******************************************************************************/
  
  Bool Init() // init after engine inits
  {
     // here when engine will be ready you can load your game data
     // return false when error occured
  
     return true;
  }
  
  /******************************************************************************/
  
  void Shut() // shut at exit
  {
     // this is called when the engine is about to exit
  }
  
  /******************************************************************************/
  
  Bool Main() // main updating
  {
     // here you have to process each frame update
  
     if(Kb.bp(KB_ESC))return false; // exit if escape on the keyboard pressed
     return true;                   // continue
  }
  
  /******************************************************************************/
  
  void Draw() // main drawing
  {
     // here you have to tell engine what to draw on the screen
  
     D.clear(TURQ);                                                                       // clear screen to turquoise color
     D.text (0, 0.1,"This is the First Tutorial");                                        // draw text at (0, 0.1) position
     D.text (0,-0.1,"Replace the CPP with some other file to view a different Tutorial"); // draw text at (0,-0.1) position
  }
Errors :
Code:
1>------ Build started: Project: Test, Configuration: Debug Win32 ------
1>Compiling...
1>Test.cpp
1>c:\opengl\esenthelenginesdk\installation\esenthelengine\graphics\sky.h(14) : warning C4305: 'argument' : truncation from 'double' to 'Flt'
1>c:\opengl\esenthelenginesdk\installation\esenthelengine\graphics\sky.h(14) : warning C4305: 'argument' : truncation from 'double' to 'Flt'
1>c:\opengl\esenthelenginesdk\installation\esenthelengine\graphics\sky.h(14) : warning C4305: 'argument' : truncation from 'double' to 'Flt'
1>c:\opengl\esenthelenginesdk\installation\esenthelengine\graphics\sky.h(14) : warning C4305: 'argument' : truncation from 'double' to 'Flt'
1>c:\opengl\esenthelenginesdk\installation\esenthelengine\graphics\sky.h(14) : warning C4305: 'argument' : truncation from 'double' to 'Flt'
1>c:\opengl\esenthelenginesdk\installation\esenthelengine\graphics\sky.h(14) : warning C4305: 'argument' : truncation from 'double' to 'Flt'
1>c:\users\jpuser\documents\visual studio 2008\projects\test\test\test.cpp(49) : warning C4305: 'argument' : truncation from 'double' to 'Flt'
1>c:\users\jpuser\documents\visual studio 2008\projects\test\test\test.cpp(50) : warning C4305: 'argument' : truncation from 'double' to 'Flt'
1>Generating Code...
1>Compiling...
1>stdafx.cpp
1>c:\opengl\esenthelenginesdk\installation\esenthelengine\graphics\sky.h(14) : warning C4305: 'argument' : truncation from 'double' to 'Flt'
1>c:\opengl\esenthelenginesdk\installation\esenthelengine\graphics\sky.h(14) : warning C4305: 'argument' : truncation from 'double' to 'Flt'
1>c:\opengl\esenthelenginesdk\installation\esenthelengine\graphics\sky.h(14) : warning C4305: 'argument' : truncation from 'double' to 'Flt'
1>c:\opengl\esenthelenginesdk\installation\esenthelengine\graphics\sky.h(14) : warning C4305: 'argument' : truncation from 'double' to 'Flt'
1>c:\opengl\esenthelenginesdk\installation\esenthelengine\graphics\sky.h(14) : warning C4305: 'argument' : truncation from 'double' to 'Flt'
1>c:\opengl\esenthelenginesdk\installation\esenthelengine\graphics\sky.h(14) : warning C4305: 'argument' : truncation from 'double' to 'Flt'
1>Generating Code...
1>Linking...
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(Window.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(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(Random.obj) : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: void __thiscall EE::Randomizer::randomize(void)" (?randomize@Randomizer@EE@@QAEXXZ)
1>EsenthelEngine.lib(Timer.obj) : error LNK2001: unresolved external symbol __imp__timeGetTime@0
1>EsenthelEngine.lib(Window.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 _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 _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 _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 _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 _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 _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 _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 _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 _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 _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 _WSAStartup@8 referenced in function "bool __cdecl EE::InitSocket(void)" (?InitSocket@EE@@YA_NXZ)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function "void __cdecl EE::ShutSocket(void)" (?ShutSocket@EE@@YAXXZ)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol _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 _gethostbyname@4 referenced in function "public: bool __thiscall EE::SockAddr::setHost(struct EE::Str8,int)" (?setHost@SockAddr@EE@@QAE_NUStr8@2@H@Z)
1>EsenthelEngine.lib(Socket.obj) : error LNK2019: unresolved external symbol _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 _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 _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 _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 _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 _select@20 referenced in function "public: bool __thiscall EE::Socket::wait(int)" (?wait@Socket@EE@@QAE_NH@Z)
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(Gfx.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(Gfx.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(Gfx 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(Gfx 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(Gfx 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(Gfx 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(Gfx 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(Gfx 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(Gfx 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(Gfx 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(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>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>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:\Users\JPuser\Documents\Visual Studio 2008\Projects\Test\Debug\Test.exe : fatal error LNK1120: 63 unresolved externals
1>Build log was saved at "file://c:\Users\JPuser\Documents\Visual Studio 2008\Projects\Test\Test\Debug\BuildLog.htm"
1>Test - 68 error(s), 15 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Any ideas? I am quite a noob with all these libs and dlls lol
10-07-2009 09:18 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
Re: Linking errors :S
For starting please use Tutorials.sln and Tutorials.vcproj

you can also look here <!-- 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 -->

or you can just copy the supplied project files to other place on the disk
10-07-2009 11:02 PM
Find all posts by this user Quote this message in a reply
Finjuri Offline
Member

Post: #3
Re: Linking errors :S
Thank you, it now works perfectly grin
10-08-2009 01:21 PM
Find all posts by this user Quote this message in a reply
Post Reply