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 / 2019 Link errors with simple script

Author
Message
Mr Mike
16
Years of Service
User Offline
Joined: 8th Jul 2008
Location:
Posted: 6th Sep 2008 23:10
When I try debugging this program:



I get these errors:
1>Linking...
1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbSync(void)" (?dbSync@@YAXXZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol "bool __cdecl LoopGDK(void)" (?LoopGDK@@YA_NXZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbText(int,int,char *)" (?dbText@@YAXHHPAD@Z) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbSyncRate(int)" (?dbSyncRate@@YAXH@Z) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl dbSyncOn(void)" (?dbSyncOn@@YAXXZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
1>Debug\TextBoxHelp.exe : fatal error LNK1120: 6 unresolved externals
1>Build log was saved at "file://d:\Documents and Settings\mike\Desktop\Game Engines\TextBoxHelp\Debug\BuildLog.htm"
1>TextBoxHelp - 7 error(s), 0 warning(s)

Anyone know how to fix it?

HEYYYY YYYOOUUUUU GUUUYYYYSSSS
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 6th Sep 2008 23:14
Quote: "1>Build log was saved at "file://d:\Documents and Settings\mike\Desktop\Game Engines\TextBoxHelp\Debug\BuildLog.htm""


Try building in Release mode.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Try
20
Years of Service
User Offline
Joined: 16th Aug 2004
Location:
Posted: 7th Sep 2008 00:07
Mr Mike,
That's strange, it works fine here!!!

I don't know if it helps or not, but here's my 2 cents...
Once I was trying to use #include <string> in GDK, with no luck, you know what, I just deleted the _DEBUG from the C/C++ Preprocessor Definitions in project settings (Visual Studio of course!)

Thanks to Pixel Perfect who pointed this and helped me out with it

Hope this helps you too
Cheers,
-Try
Mr Mike
16
Years of Service
User Offline
Joined: 8th Jul 2008
Location:
Posted: 7th Sep 2008 03:02
Is there anyway to restore visual studio's settings to default settings?

HEYYYY YYYOOUUUUU GUUUYYYYSSSS
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 7th Sep 2008 03:59
Quote: "Is there anyway to restore visual studio's settings to default settings?"


Just create a new project. It will have the default settings.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Try
20
Years of Service
User Offline
Joined: 16th Aug 2004
Location:
Posted: 7th Sep 2008 09:44
Not really, AFAIK though!

-Try
ORLY
18
Years of Service
User Offline
Joined: 28th Aug 2006
Location:
Posted: 7th Sep 2008 10:33
Hi,

I don't use Dark GDK or anything but did you add the library/object to the linker?

like:
../lib/Win32-gcc/DarkGDK.a
Mr Mike
16
Years of Service
User Offline
Joined: 8th Jul 2008
Location:
Posted: 7th Sep 2008 18:40
I just created a new project and copied that code and it works fine now. Thanks for the help

HEYYYY YYYOOUUUUU GUUUYYYYSSSS
johhny trash
16
Years of Service
User Offline
Joined: 10th Sep 2008
Location:
Posted: 11th Sep 2008 07:19
What is release mode?

--
sig file under construction

Login to post a reply

Server time is: 2024-09-30 05:27:26
Your offset time is: 2024-09-30 05:27:26