Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: LNK2019 in Template  (Read 3263 times)
Cronk
Community Member
*
Posts: 5


« on: November 09, 2007, 06:59:42 AM »

Hi!
I'm looking for a new engine atm and TV3D seems to be what I need. The Problem is, that trying to compile the Template Project delivered with it always gets me around 16 Linker errors. I use Visual C++ 2005. Here is what the log says (sorry for german log):
Quote
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: bool __thiscall CTVInputEngine::Initialize(bool,bool)" (__imp_?Initialize@CTVInputEngine@@QAE_N_N0@Z)" in Funktion ""void __cdecl InitTV3D(void)" (?InitTV3D@@YAXXZ)".
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall CTVInputEngine::CTVInputEngine(void)" (__imp_??0CTVInputEngine@@QAE@XZ)" in Funktion ""void __cdecl InitTV3D(void)" (?InitTV3D@@YAXXZ)".
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall CTVScene::CTVScene(void)" (__imp_??0CTVScene@@QAE@XZ)" in Funktion ""void __cdecl InitTV3D(void)" (?InitTV3D@@YAXXZ)".
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall CTVEngine::SetAngleSystem(enum cCONST_TV_ANGLE)" (__imp_?SetAngleSystem@CTVEngine@@QAEXW4cCONST_TV_ANGLE@@@Z)" in Funktion ""void __cdecl InitTV3D(void)" (?InitTV3D@@YAXXZ)".
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall CTVEngine::DisplayFPS(bool,int)" (__imp_?DisplayFPS@CTVEngine@@QAEX_NH@Z)" in Funktion ""void __cdecl InitTV3D(void)" (?InitTV3D@@YAXXZ)".
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall CTVViewport::SetAutoResize(bool)" (__imp_?SetAutoResize@CTVViewport@@QAEX_N@Z)" in Funktion ""void __cdecl InitTV3D(void)" (?InitTV3D@@YAXXZ)".
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: class CTVViewport * __thiscall CTVEngine::GetViewport(void)" (__imp_?GetViewport@CTVEngine@@QAEPAVCTVViewport@@XZ)" in Funktion ""void __cdecl InitTV3D(void)" (?InitTV3D@@YAXXZ)".
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: bool __thiscall CTVEngine::Init3DWindowed(struct HWND__ *,bool)" (__imp_?Init3DWindowed@CTVEngine@@QAE_NPAUHWND__@@_N@Z)" in Funktion ""void __cdecl InitTV3D(void)" (?InitTV3D@@YAXXZ)".
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall CTVEngine::SetDebugFile(char const *)" (__imp_?SetDebugFile@CTVEngine@@QAEXPBD@Z)" in Funktion ""void __cdecl InitTV3D(void)" (?InitTV3D@@YAXXZ)".
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall CTVEngine::SetDebugMode(bool,bool,bool,bool)" (__imp_?SetDebugMode@CTVEngine@@QAEX_N000@Z)" in Funktion ""void __cdecl InitTV3D(void)" (?InitTV3D@@YAXXZ)".
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall CTVEngine::CTVEngine(void)" (__imp_??0CTVEngine@@QAE@XZ)" in Funktion ""void __cdecl InitTV3D(void)" (?InitTV3D@@YAXXZ)".
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: bool __thiscall CTVInputEngine::IsKeyPressed(enum cCONST_TV_KEY)" (__imp_?IsKeyPressed@CTVInputEngine@@QAE_NW4cCONST_TV_KEY@@@Z)" in Funktion "_WinMain@16".
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: int __thiscall CTVEngine::RenderToScreen(void)" (__imp_?RenderToScreen@CTVEngine@@QAEHXZ)" in Funktion "_WinMain@16".
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall CTVScene::RenderAll(bool,bool)" (__imp_?RenderAll@CTVScene@@QAEX_N0@Z)" in Funktion "_WinMain@16".
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: int __thiscall CTVEngine::Clear(bool)" (__imp_?Clear@CTVEngine@@QAEH_N@Z)" in Funktion "_WinMain@16".
Template.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall CTVEngine::~CTVEngine(void)" (__imp_??1CTVEngine@@QAE@XZ)" in Funktion ""public: void * __thiscall CTVEngine::`scalar deleting destructor'(unsigned int)" (??_GCTVEngine@@QAEPAXI@Z)".

Hope you can help me! Thanks in advance Wink
Logged
aeon
Customers
Community Member
*****
Posts: 364


WWW
« Reply #1 on: November 09, 2007, 10:53:17 AM »

add msvcrmt.lib to your list of dependancies and ignore libcmt.lib in the linker.

This should fix the problem (also make sure you have the /clr:oldsyntax flag)
Logged

Cronk
Community Member
*
Posts: 5


« Reply #2 on: November 09, 2007, 11:25:57 AM »

It should fix my problem, but it didn't, same business as usual -.-
Logged
Cronk
Community Member
*
Posts: 5


« Reply #3 on: November 09, 2007, 03:17:55 PM »

OK, finaly just included the "oldsyntax" wrong. now I do not get this errors any more but instead of them around 500 others Lips sealed
As far as I could look them up, they are LNK2019 and LNK2001. It's a bit too much to post here, so I leave them out.
Logged
kwazai
Community Member
*
Posts: 173


« Reply #4 on: November 09, 2007, 04:49:26 PM »

I know little to nothing about c++, but most of those function calls are from the main tv3d sdk that has to be 'referenced' with vb.net.
mike
Logged

murphys law-28th corollary- if there are five ways for something to go wrong and you circumvent all five , a sixth will promptly develop.
Cronk
Community Member
*
Posts: 5


« Reply #5 on: November 10, 2007, 11:41:42 AM »

Found something similar somewhere else in the Forums.
Tried "using namespace DxVBLibA;", but it only tells me that this namespace does not exist.

EDIT: May someone give tell me all the required projectsettings for VC++ 2005 so I can check if all is correct?
« Last Edit: November 10, 2007, 11:43:59 AM by Cronk » Logged
jmaddox
Customers
Community Member
*****
Posts: 525


« Reply #6 on: November 10, 2007, 04:59:53 PM »

Are you using sdk/cppdll or sdk/cpplib to build the application?

Jim
Logged
Cronk
Community Member
*
Posts: 5


« Reply #7 on: November 10, 2007, 05:38:28 PM »

Arrrghhhh! Lips sealed

I'm that stupid! Used cpplib. Changed it to cppdll and works, thanks mate Cheesy
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks