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 / Link error - Using 3DWLoader

Author
Message
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 15th May 2008 19:53
Im getting this:





Niels Henriksen
www.tales-of-the-realms.com
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 15th May 2008 20:01
in project->Linker->Input->Ignore Specific Library:

LIBCMTD, msvcprtd, atls, libcpmtd

try doing that

Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 15th May 2008 20:07
didnt work

Got this now



Niels Henriksen
www.tales-of-the-realms.com
Pixel Perfect
17
Years of Service
User Offline
Joined: 21st Feb 2007
Location: UK
Posted: 15th May 2008 20:38
Niels ... you have the C/C++ Code Generation property in the Configuration Properties set to:

Multi-threaded Debug (/MTd)

It needs to be:

Multi-threaded (/MT)

No matter how good your code is, someone will improve on it
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 15th May 2008 21:59
Yeahoo... it worked

Now Im one step closer

Cool..... now I can start to place object in my world..

Niels Henriksen
www.tales-of-the-realms.com
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 16th May 2008 04:49
Awesome! BTW - Once you get past those darn linker issues and "junk" Isn't it wonderful when you can finally type dbPrint("Hello") and it compiles and runs! That to me is like someone handing an inspiring artist, who never could afford them, paper and pencil!

Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 16th May 2008 09:34
@jason - you are right.... and after been using C++ the last few weeks I feel more and more that its in that way the programming will go with GDK

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
tneva82
16
Years of Service
User Offline
Joined: 7th May 2008
Location:
Posted: 16th May 2008 11:59
Quote: "
Niels ... you have the C/C++ Code Generation property in the Configuration Properties set to:
"


Thank you thank you thank you! This solved my linker problems as well Thanks a lot as well. Now I can get some progress on my project as well.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 16th May 2008 12:33
@tneva82 : That's great that you found Niel's thread. I was thinking about referring you here from your other thread.

This is a very common error here, you might also encounter it when using Sparky's dll with the GDK, and in any other combination as a result of linking in more libraries.

One thing that helps alot is to learn the naming convention used by libraries. If the library name ends with a d, it is a debug library. You cannot mix them with release libraries. If a library name contains the letters "mt", it is likely to be a multi-threaded library, and it will conflict in a single-threaded project.

Usually, an API library implementation will provide a static, static debug, dynamic, and dynamic debug library file in single-threaded and multi-threaded versions. Linker errors are often traceable to mixing incompatible library types. The include files are usually the same; only the library you link with is different.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 16th May 2008 14:31
And don't forget to add

#pragma once

to the first line of the SC_Collision.h for Sparky's - it matters when you include SC_Collision.h in more than one file

Login to post a reply

Server time is: 2024-11-20 11:29:45
Your offset time is: 2024-11-20 11:29:45