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 / Weird compilation errors

Author
Message
Gasilli
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Having a party in your garage
Posted: 12th Oct 2008 03:00 Edited at: 12th Oct 2008 03:05
I just started a new project, and I have two files, main.cpp and functions.cpp. Main.cpp has all the normal GDK stuff and functions.cpp contains movement, loading of media, and other functions I will make. When I compile I get this happens:



Any ideas? It seems to be a DarkGDK issue.
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 12th Oct 2008 03:42
You'll have to post code for us to help.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Gasilli
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Having a party in your garage
Posted: 12th Oct 2008 04:51
Here is my main.cpp:




And my functions.cpp

Gasilli
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Having a party in your garage
Posted: 12th Oct 2008 05:42
I solved this part:



But the other parts still happen.

I solved it by removing the directories of a different version of DirectX SDK, and keeping the August 2007 version.
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 12th Oct 2008 06:46
functions.cpp should be functions.h. Not just for good practice, but so that the compiler will only produce a copy of the functions in one object. That way the linker will work properly.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Gasilli
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Having a party in your garage
Posted: 12th Oct 2008 07:56
Thanks, that did it. I still get this warning though:

Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 12th Oct 2008 08:41
That would be another linker option that needs changing. It should be fine for now, though, as long as it compiles.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Gasilli
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Having a party in your garage
Posted: 12th Oct 2008 08:43
It does compile fine, so I guess I will just leave it alone.
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 12th Oct 2008 08:45
Go to Project Properties, and check under Linker->Input. For me, the ignore specific libraries option is set to "libcmtd, msvcrt, atls". That may help.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Gasilli
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Having a party in your garage
Posted: 12th Oct 2008 08:56
LIBCMT was the one that did it for me, works like a charm. Now only if the game would....

Login to post a reply

Server time is: 2024-11-25 06:56:17
Your offset time is: 2024-11-25 06:56:17