digitalmars.D.learn - Help with linker errors
- Jacob Carlborg <doobnet gmail.com> Apr 13 2008
- Frank Benoit <keinfarbton googlemail.com> Apr 13 2008
- Jacob Carlborg <doobnet gmail.com> Apr 14 2008
- "Jarrett Billingsley" <kb3ctd2 yahoo.com> Apr 13 2008
I have a framework/game engine or what to call it, 3D Game Studio, that I would like to use with D. It comes with four header files and a lib file (in visual studio format) to link in a dll file. I've ported the header files and a "Hello world" example do D. All compile but I get linker errors on the functions I try to use from the game engine. I have a converted the lib file with coff2omf and also tried to create my own lib file with implib. I've tried to compile both with dsss and dmd, I've tried both to have a pragma(lib, "acknex.lib"); in the main file and added the lib file to the command line. I don't what more I can do to solve the linker errors. BTW it's works great with C++ and visual studio, maybe I should try with C++ and dmc also to see if that works.
Apr 13 2008
Jacob Carlborg schrieb:I have a framework/game engine or what to call it, 3D Game Studio, that I would like to use with D. It comes with four header files and a lib file (in visual studio format) to link in a dll file. I've ported the header files and a "Hello world" example do D. All compile but I get linker errors on the functions I try to use from the game engine. I have a converted the lib file with coff2omf and also tried to create my own lib file with implib. I've tried to compile both with dsss and dmd, I've tried both to have a pragma(lib, "acknex.lib"); in the main file and added the lib file to the command line. I don't what more I can do to solve the linker errors. BTW it's works great with C++ and visual studio, maybe I should try with C++ and dmc also to see if that works.
for dwt i used coffimplib from the dmc package then you can use libunres to check the contained symbols. They should have the format _indentifier 4
Apr 13 2008
Frank Benoit wrote:Jacob Carlborg schrieb:I have a framework/game engine or what to call it, 3D Game Studio, that I would like to use with D. It comes with four header files and a lib file (in visual studio format) to link in a dll file. I've ported the header files and a "Hello world" example do D. All compile but I get linker errors on the functions I try to use from the game engine. I have a converted the lib file with coff2omf and also tried to create my own lib file with implib. I've tried to compile both with dsss and dmd, I've tried both to have a pragma(lib, "acknex.lib"); in the main file and added the lib file to the command line. I don't what more I can do to solve the linker errors. BTW it's works great with C++ and visual studio, maybe I should try with C++ and dmc also to see if that works.
for dwt i used coffimplib from the dmc package then you can use libunres to check the contained symbols. They should have the format _indentifier 4
Thanks Frank, coffimplib solved it.
Apr 14 2008
"Jacob Carlborg" <doobnet gmail.com> wrote in message news:ftt5hf$1a9h$1 digitalmars.com...I have a framework/game engine or what to call it, 3D Game Studio, that I would like to use with D. It comes with four header files and a lib file (in visual studio format) to link in a dll file. I've ported the header files and a "Hello world" example do D. All compile but I get linker errors on the functions I try to use from the game engine. I have a converted the lib file with coff2omf and also tried to create my own lib file with implib. I've tried to compile both with dsss and dmd, I've tried both to have a pragma(lib, "acknex.lib"); in the main file and added the lib file to the command line. I don't what more I can do to solve the linker errors. BTW it's works great with C++ and visual studio, maybe I should try with C++ and dmc also to see if that works.
What linker errors are you getting? It's hard to diagnose a problem if we don't know what it is.
Apr 13 2008









Jacob Carlborg <doobnet gmail.com> 