Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / How do you track down unresolved ext symbols? Snippet included

Author
Message
Lampton Worm
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 13th Oct 2005 21:02 Edited at: 13th Oct 2005 21:05
Hi,

I'm sure this is pretty obvious, but how would you go about tracking down and resolving the link error this small code gives? Is there any particular way, or some assistance VS.Net can give you, or do you just have to know what you're doing and examine the code ?



p.s. I know that val will be 'unassigned' if the code worked. Ta,

Cheers!
Mike Johnson
TGC Developer
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 13th Oct 2005 21:23
With the error -

error LNK2019: unresolved external symbol "public: __thiscall blah::blah(void)" (??0blah@@QAE@XZ) referenced in function "void __cdecl DarkSDK(void)" (?DarkSDK@@YAXXZ)

You can break it down as follows -

* it says that a function call to the blah constructor has been made

* it also tells you that the function call was made in the Dark SDK function

* now look for the blah constructor to see what the problem is

* in the class definition the blah constructor has been declared but it does not exist

* add in the code for the blah constructor like "blah(){};"

* now compile and it is all okay

With things like this it's normally saying something has been referenced and the compiler cannot find it.
Lampton Worm
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 13th Oct 2005 21:50
Ah, Thanks

Login to post a reply

Server time is: 2024-04-19 11:02:02
Your offset time is: 2024-04-19 11:02:02