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 / DarkGDK, VC++ 2003, DLLs

Author
Message
ThomasFN
19
Years of Service
User Offline
Joined: 26th Aug 2004
Location:
Posted: 15th Aug 2006 16:17
OK im trying to build a dll using visual c++ 2003 and DarkGDK (latest version) to make a simple command that creates a cube. The GDK works; i can run the spinning cube sample and compile it and it works with no errors or warnings, its just in dlls it dosn\'t work. I have this code:



and i get the following from the compiler:

MyTestDLL error LNK2005: _DllMain@12 already defined in LIBCMTD.lib(dllmain.obj)

MyTestDLL warning LNK4006: _DllMain@12 already defined in LIBCMTD.lib(dllmain.obj); second definition ignored

MyTestDLL fatal error LNK1169: one or more multiply defined symbols found

when the dbmakecube is remmed out, the dll compiles without issue. can anyone help?

OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 15th Aug 2006 16:22
Unfortunately the GSDK cant be called in a DLL... Dont know of a way of getting around it.

Come to the last Unofficial DBPro Convention (http://convention.logicstudios.net/)
Supplying "NO" since 1974...
ThomasFN
19
Years of Service
User Offline
Joined: 26th Aug 2004
Location:
Posted: 15th Aug 2006 16:30
then how the heck am i meant to make a plugin for DBP!?



OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 15th Aug 2006 16:32 Edited at: 15th Aug 2006 16:33
Your not meant to - with the GSDK anyway.

Come to the last Unofficial DBPro Convention (http://convention.logicstudios.net/)
Supplying "NO" since 1974...
Kentaree
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 15th Aug 2006 16:54
You can access some of DBPs internal commands through the globstruct.h file, which is released with each new update

APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 15th Aug 2006 21:09 Edited at: 15th Aug 2006 21:10
ThomasFN, use the Linker Commandline option /FORCE. You will still get the warning regarding identical symbols, but it should link. The problem here is that the DGDK library files still contain a DLLMain entry which is superfluous. I've already asked Mike to remove it in the next release.

Paul.

Login to post a reply

Server time is: 2024-06-17 06:01:40
Your offset time is: 2024-06-17 06:01:40