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 / Linking error

Author
Message
Murder
20
Years of Service
User Offline
Joined: 30th Jul 2004
Location: Cybertron
Posted: 17th Oct 2006 10:30
HI,
I'm trying to use std::ofstream from the included <fstream>...
i'm getting this error:

error LNK2005: ___initmbctable already defined in LIBCD.lib(mbctype.obj)


im using Visual Studios 2003... has any one come accross this error??

Thanks,
- Wes

"You have to beat the man.....To be the man"
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 17th Oct 2006 11:44
It sounds to me that your getting the usual function conflicts with the Debugging version of the runtime library. Where as your including a library that was built with the release version of the runtime library.

Although not advisable, have you temporarily tried using the linker command line option: /FORCE

Paul.

Murder
20
Years of Service
User Offline
Joined: 30th Jul 2004
Location: Cybertron
Posted: 18th Oct 2006 08:28
hmmm.. i tried adding /FORCE to the linker option.. the game actually runs now but it crashes at:

ofstream ofs ("world1.map");

i noticed you said that i might be including a library that was built with release version... can i get the one that was built with debug version somewhere??

Thanks,
- Wes

"You have to beat the man.....To be the man"
Miguel Melo
19
Years of Service
User Offline
Joined: 8th Aug 2005
Location:
Posted: 18th Oct 2006 11:52
Quote: "can i get the one that was built with debug version somewhere??"


Not until Lee and Mike realise that this is "a good idea"(tm) for all involved and release debug versions of the libraries too...

I have vague plans for World Domination
Murder
20
Years of Service
User Offline
Joined: 30th Jul 2004
Location: Cybertron
Posted: 19th Oct 2006 07:44
So is this a Darkgame sdk thing? and if so, its impossible to use any fstream commands?

how are users reading and writing games to files?

I took a look at the file system dark game comes with but had some issues with reading in floats..

if anyone can give me direction it would be appreciated.

Thanks

"You have to beat the man.....To be the man"

Login to post a reply

Server time is: 2024-11-19 08:35:01
Your offset time is: 2024-11-19 08:35:01