Du bist nicht angemeldet.

Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!

Werbeanzeige

BlackSnake

Community-Fossil

  • »BlackSnake« ist der Autor dieses Themas

Beiträge: 1 549

Beruf: Student

  • Private Nachricht senden

1

21.04.2006, 18:07

Link Fehler

ne frage: ^^

und zwar, was sagt dieser link fehler aus

C-/C++-Quelltext

1
MainMenu.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbFont::DrawTextW(class tbVector2,char const *,unsigned long,int,class tbColor const &,class tbColor &,class tbVector2,float,float,float,float,float)" (__imp_?DrawTextW@tbFont@@QAE?AW4tbResult@@VtbVector2@@PBDKHABVtbColor@@AAV4@0MMMMM@Z) referenced in function "public: enum tbResult __thiscall CMainMenu::Render(float)" (?Render@CMainMenu@@QAE?AW4tbResult@@M@Z)


danke für hilfe

BlackSnake

Community-Fossil

  • »BlackSnake« ist der Autor dieses Themas

Beiträge: 1 549

Beruf: Student

  • Private Nachricht senden

2

21.04.2006, 18:27

und wie behebt man ihn.

thx

dot

Supermoderator

Beiträge: 9 757

Wohnort: Graz

  • Private Nachricht senden

3

21.04.2006, 19:04

das bedeutet, dass der linker die angegebenen funktionen/bzw. varianten der funktionen 'CMainMenu::Render()' und 'tbFont::DrawTextW()' nicht finden kann.
d.h. sie wurden zwar deklariert, aber nicht implementiert.
meistens kommt das davon, dass man vergessen hat eine benötigte .lib zu linken.

BlackSnake

Community-Fossil

  • »BlackSnake« ist der Autor dieses Themas

Beiträge: 1 549

Beruf: Student

  • Private Nachricht senden

4

21.04.2006, 20:04

ja ich habe aber alle gelinkt, die es zu linken gab.
wenn ich das project von david nehem und seine source codes raus tue und meine rein gehts auf einmal. obwohl der der linker->input alle identisch sind
????
hat das dan wirklich mit den libs zu tun

thx

BlackSnake

Community-Fossil

  • »BlackSnake« ist der Autor dieses Themas

Beiträge: 1 549

Beruf: Student

  • Private Nachricht senden

5

21.04.2006, 20:17

hi nochmal

den fhler in debug-modus habe ich immer noch nicht weg:

C-/C++-Quelltext

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Compiling...
Flash.cpp
i:\c++\tribase\include\dshowbaseclasses\wxutil.h(195) : warning C4312: 'type cast' : conversion from 'LONG' to 'PVOID' of greater size
i:\c++\tribase\include\tbgui.h(288) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
Intro.cpp
i:\c++\tribase\include\dshowbaseclasses\wxutil.h(195) : warning C4312: 'type cast' : conversion from 'LONG' to 'PVOID' of greater size
i:\c++\tribase\include\tbgui.h(288) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
MainMenu.cpp
i:\c++\tribase\include\dshowbaseclasses\wxutil.h(195) : warning C4312: 'type cast' : conversion from 'LONG' to 'PVOID' of greater size
i:\c++\tribase\include\tbgui.h(288) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
Generating Code...
Linking...
MainMenu.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbFont::DrawTextW(class tbVector2,char const *,unsigned long,int,class tbColor const &,class tbColor &,class tbVector2,float,float,float,float,float)" (__imp_?DrawTextW@tbFont@@QAE?AW4tbResult@@VtbVector2@@PBDKHABVtbColor@@AAV4@0MMMMM@Z) referenced in function "public: enum tbResult __thiscall CMainMenu::Render(float)" (?Render@CMainMenu@@QAE?AW4tbResult@@M@Z)
I:\C++\Eigene Sachen\Flash\Debug\Flash.exe : fatal error LNK1120: 1 unresolved externals


jetzt habe ich das ganze mal in release probiert und jetzt bekomme ich sowas:

C-/C++-Quelltext

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Compiling...
MainMenu.cpp
i:\c++\tribase\include\dshowbaseclasses\wxutil.h(195) : warning C4312: 'type cast' : conversion from 'LONG' to 'PVOID' of greater size
i:\c++\tribase\include\tbGUI.h(288) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
Intro.cpp
i:\c++\tribase\include\dshowbaseclasses\wxutil.h(195) : warning C4312: 'type cast' : conversion from 'LONG' to 'PVOID' of greater size
i:\c++\tribase\include\tbGUI.h(288) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
Flash.cpp
i:\c++\tribase\include\dshowbaseclasses\wxutil.h(195) : warning C4312: 'type cast' : conversion from 'LONG' to 'PVOID' of greater size
i:\c++\tribase\include\tbGUI.h(288) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
Linking...
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) char * __cdecl tbRemoveDir(char *)" (__imp_?tbRemoveDir@@YAPADPAD@Z)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class tbTextureManager & __cdecl tbTextureManager::Instance(void)" (__imp_?Instance@tbTextureManager@@SAAAV1@XZ)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbTextureManager::Exit(void)" (__imp_?Exit@tbTextureManager@@QAE?AW4tbResult@@XZ)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbTextureManager::Init(int)" (__imp_?Init@tbTextureManager@@QAE?AW4tbResult@@H@Z)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) enum tbResult __cdecl tbWriteToLog(char *,...)" (__imp_?tbWriteToLog@@YA?AW4tbResult@@PADZZ)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) enum tbResult __cdecl tbDoConfigDialog(struct tbConfig *)" (__imp_?tbDoConfigDialog@@YA?AW4tbResult@@PAUtbConfig@@@Z)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) enum tbResult __cdecl tbInit(void)" (__imp_?tbInit@@YA?AW4tbResult@@XZ)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbFont::Init(char *,char *)" (__imp_?Init@tbFont@@QAE?AW4tbResult@@PAD0@Z)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall tbFont::tbFont(void)" (__imp_??0tbFont@@QAE@XZ)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) enum tbResult __cdecl tbExit(void)" (__imp_?tbExit@@YA?AW4tbResult@@XZ)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) enum tbResult __cdecl tbDoMessageLoop(enum tbResult (__cdecl*)(float),enum tbResult (__cdecl*)(float))" (__imp_?tbDoMessageLoop@@YA?AW4tbResult@@P6A?AW41@M@Z0@Z)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class tbDirectInput & __cdecl tbDirectInput::Instance(void)" (__imp_?Instance@tbDirectInput@@SAAAV1@XZ)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbDirectInput::GetState(float *,int *)" (__imp_?GetState@tbDirectInput@@QAE?AW4tbResult@@PAMPAH@Z)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbDirectInput::Exit(void)" (__imp_?Exit@tbDirectInput@@QAE?AW4tbResult@@XZ)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbDirectInput::Init(struct HWND__ *,unsigned long)" (__imp_?Init@tbDirectInput@@QAE?AW4tbResult@@PAUHWND__@@K@Z)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class tbDirect3D & __cdecl tbDirect3D::Instance(void)" (__imp_?Instance@tbDirect3D@@SAAAV1@XZ)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbDirect3D::Present(void)" (__imp_?Present@tbDirect3D@@QAE?AW4tbResult@@XZ)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbDirect3D::Exit(void)" (__imp_?Exit@tbDirect3D@@QAE?AW4tbResult@@XZ)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbDirect3D::Init(struct tbConfig *,char *,struct HWND__ *,struct HICON__ *)" (__imp_?Init@tbDirect3D@@QAE?AW4tbResult@@PAUtbConfig@@PADPAUHWND__@@PAUHICON__@@@Z)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned long __thiscall tbDirectInput::GetNumButtons(void)" (__imp_?GetNumButtons@tbDirectInput@@QAEKXZ)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall tbFont::~tbFont(void)" (__imp_??1tbFont@@QAE@XZ)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall tbColor::tbColor(void)" (__imp_??0tbColor@@QAE@XZ)
Flash.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall tbVector2::tbVector2(void)" (__imp_??0tbVector2@@QAE@XZ)
Intro.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: struct IDirect3DTexture9 * __thiscall tbTextureManager::GetTexture(char *,int,int,int,int,enum _D3DFORMAT,unsigned long,enum _D3DPOOL,unsigned long,unsigned long,unsigned long)" (__imp_?GetTexture@tbTextureManager@@QAEPAUIDirect3DTexture9@@PADHHHHW4_D3DFORMAT@@KW4_D3DPOOL@@KKK@Z)
Intro.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbTextureManager::ReleaseTexture(struct IDirect3DBaseTexture9 *)" (__imp_?ReleaseTexture@tbTextureManager@@QAE?AW4tbResult@@PAUIDirect3DBaseTexture9@@@Z)
Intro.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) enum tbResult __cdecl tbDelay(unsigned long)" (__imp_?tbDelay@@YA?AW4tbResult@@K@Z)
Intro.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbDirect3D::SetFVF(unsigned long)" (__imp_?SetFVF@tbDirect3D@@QAE?AW4tbResult@@K@Z)
Intro.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbDirect3D::SetTexture(unsigned long,struct IDirect3DBaseTexture9 *)" (__imp_?SetTexture@tbDirect3D@@QAE?AW4tbResult@@KPAUIDirect3DBaseTexture9@@@Z)
Intro.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbDirect3D::SetRS(enum _D3DRENDERSTATETYPE,unsigned long)" (__imp_?SetRS@tbDirect3D@@QAE?AW4tbResult@@W4_D3DRENDERSTATETYPE@@K@Z)
Intro.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class tbVector2 const & __thiscall tbDirect3D::GetScreenSize(void)" (__imp_?GetScreenSize@tbDirect3D@@QAEABVtbVector2@@XZ)
Intro.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: struct IDirect3DDevice9 * __thiscall tbDirect3D::operator->(void)" (__imp_??CtbDirect3D@@QAEPAUIDirect3DDevice9@@XZ)
Intro.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall tbColor::operator unsigned long(void)const " (__imp_??BtbColor@@QBEKXZ)
Intro.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall tbColor::tbColor(float,float,float)" (__imp_??0tbColor@@QAE@MMM@Z)
Intro.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class tbVector3 & __thiscall tbVector3::operator=(class tbVector3 const &)" (__imp_??4tbVector3@@QAEAAV0@ABV0@@Z)
Intro.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall tbVector3::tbVector3(float,float,float)" (__imp_??0tbVector3@@QAE@MMM@Z)
Intro.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall tbVector3::tbVector3(void)" (__imp_??0tbVector3@@QAE@XZ)
Intro.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class tbVector2 & __thiscall tbVector2::operator=(class tbVector2 const &)" (__imp_??4tbVector2@@QAEAAV0@ABV0@@Z)
Intro.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall tbVector2::tbVector2(float,float)" (__imp_??0tbVector2@@QAE@MM@Z)
MainMenu.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbFont::DrawTextW(class tbVector2,char const *,unsigned long,int,class tbColor const &,class tbColor &,class tbVector2,float,float,float,float,float)" (__imp_?DrawTextW@tbFont@@QAE?AW4tbResult@@VtbVector2@@PBDKHABVtbColor@@AAV4@0MMMMM@Z)
MainMenu.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbFont::End(void)" (__imp_?End@tbFont@@QAE?AW4tbResult@@XZ)
MainMenu.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: enum tbResult __thiscall tbFont::Begin(void)" (__imp_?Begin@tbFont@@QAE?AW4tbResult@@XZ)
MainMenu.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class tbColor & __thiscall tbColor::operator=(class tbColor const &)" (__imp_??4tbColor@@QAEAAV0@ABV0@@Z)
MainMenu.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall tbColor::tbColor(float,float,float,float)" (__imp_??0tbColor@@QAE@MMMM@Z)
MainMenu.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall tbColor::tbColor(float)" (__imp_??0tbColor@@QAE@M@Z)
MainMenu.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall tbVector2::tbVector2(float)" (__imp_??0tbVector2@@QAE@M@Z)
MainMenu.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall tbVector2::tbVector2(class tbVector2 const &)" (__imp_??0tbVector2@@QAE@ABV0@@Z)
I:\C++\Eigene Sachen\Flash\Release\Flash.exe : fatal error LNK1120: 46 unresolved externals


was mache ich da bitte die ganze zeit falsch.
??

thx

6

21.04.2006, 20:30

Bei mir hat die DrawText auch mal nen Linkerfehler verursacht. Komischerweise war er weg, nachdem ich die Funktion in DrawTextA umbenannt hab.
Ich gebe bei der Arbeit immer 100%

6% Montags
30% Dienstags
35% Mittwochs
25% Donnerstag
4% Freitag

BlackSnake

Community-Fossil

  • »BlackSnake« ist der Autor dieses Themas

Beiträge: 1 549

Beruf: Student

  • Private Nachricht senden

7

22.04.2006, 13:12

das mir dem DrawTextA klappt leider auch nicht.

ich weis nicht mehr was ich ändern soll. wenn ich davids projekt nehme und seine codes lösche und meine reintuhe dan funzt es. aber das ist ja bissen blöde immer sein projekt zu nhemen

bitte um weitere hilfe
thx

8

22.04.2006, 15:00

Und wenn du dein eigenes Projekt von UNICODE auf ANSII umstellst?
Ich gebe bei der Arbeit immer 100%

6% Montags
30% Dienstags
35% Mittwochs
25% Donnerstag
4% Freitag

dot

Supermoderator

Beiträge: 9 757

Wohnort: Graz

  • Private Nachricht senden

9

22.04.2006, 16:59

das is gut möglich, dass das das problem is ;)

BlackSnake

Community-Fossil

  • »BlackSnake« ist der Autor dieses Themas

Beiträge: 1 549

Beruf: Student

  • Private Nachricht senden

10

23.04.2006, 14:32

mit dem ANSII funzt es.

danke

mfg

Werbeanzeige