Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
c++ - libraries
Hello, I'd like to replace the slow MinGW GCC with DMC. Unfortunately, DMC doesn't seem to be supported by any of the libraries I use, so I have to waste time with implib and/or adjusting makefiles to generate the .lib files to link with. I've been having "fun" for a couple of hours now trying to compile a very simple SDL application. Fortunately SDL comes with libs for the Borland compiler. I'm currently stuck at the following error message (during linking): "OPTLINK : Warning 134: No Start Address" Doing some more googling, I came across a tip to specify /ENTRY. Using "/ENTRY:WinMain" gets me a little bit further: C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined __streams C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined GetModuleHandleA C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined _SDL_main C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined ___alloca_helper C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined LoadLibraryA C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined FreeLibrary C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined GetCommandLineA Stuff like this has made me give up on DMC in the past... Yes there are some clues in the newsgroup archives, but it remains to be a real chore. And once I finally get the SDL library to link properly with my little application, I soon will have similar wonderful adventures with libpng, libz, libjpeg and many others! :( Is there perhaps a repository of pre-built libs for DMC, or perhaps a straight-forward guide to work with third party libraries (a wiki perhaps)? Something in the style of the Dev-C++ devpacks would be a godsend. Please help me get past this library-hacking, so I can do what I wanted to do in the first place: compile *my* code. I apologize for any traces of sarcasm in the above. Regards, soon-to-go-berserk Brecht Jan 20 2007
Brecht Machiels wrote:Hello, I'd like to replace the slow MinGW GCC with DMC. Unfortunately, DMC doesn't seem to be supported by any of the libraries I use, so I have to waste time with implib and/or adjusting makefiles to generate the .lib files to link with. I've been having "fun" for a couple of hours now trying to compile a very simple SDL application. Fortunately SDL comes with libs for the Borland compiler. I'm currently stuck at the following error message (during linking): "OPTLINK : Warning 134: No Start Address" Doing some more googling, I came across a tip to specify /ENTRY. Using "/ENTRY:WinMain" gets me a little bit further: C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined __streams C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined GetModuleHandleA C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined _SDL_main C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined ___alloca_helper C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined LoadLibraryA C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined FreeLibrary C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined GetCommandLineA Stuff like this has made me give up on DMC in the past... Yes there are some clues in the newsgroup archives, but it remains to be a real chore. Jan 20 2007
Hello, It seems kernel32 is linked in by default. Running dmc.exe "..\common\timer.obj" "..\common\conio.obj" "..\common\vga.obj" -ostars_sdl.exe SDLmain.lib SDL.lib -L/ENTRY:WinMain results in the following OPTLINK call: link ..\common\timer.obj+..\common\conio.obj+..\common\vga.obj,stars_sdl.exe,,SD Lmain+SDL+user32+kernel32/noi/ENTRY:WinMain; Notice "kernel32" in there. I also tried adding kernel32.lib explicitly: dmc.exe "..\common\timer.obj" "..\common\conio.obj" "..\common\vga.obj" -ostars_sdl.exe SDLmain.lib SDL.lib kernel32.lib -L/ENTRY:WinMain which results in link ..\common\timer.obj+..\common\conio.obj+..\common\vga.obj,stars_sdl.exe,,SD Lmain+SDL+kernel32+user32+kernel32/noi/ENTRY:WinMain; OPTLINK returns the same errors though. Any ideas? On a side note, a library repository for DMC such as http://devpaks.org/ for MinGW would be great. I'm sure many of the DMC users out there have each built some libraries with/for DMC. Perhaps it's possible to collect those somewhere? Regards, Brecht Walter Bright wrote:Brecht Machiels wrote:Hello, I'd like to replace the slow MinGW GCC with DMC. Unfortunately, DMC doesn't seem to be supported by any of the libraries I use, so I have to waste time with implib and/or adjusting makefiles to generate the .lib files to link with. I've been having "fun" for a couple of hours now trying to compile a very simple SDL application. Fortunately SDL comes with libs for the Borland compiler. I'm currently stuck at the following error message (during linking): "OPTLINK : Warning 134: No Start Address" Doing some more googling, I came across a tip to specify /ENTRY. Using "/ENTRY:WinMain" gets me a little bit further: C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined __streams C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined GetModuleHandleA C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined _SDL_main C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined ___alloca_helper C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined LoadLibraryA C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined FreeLibrary C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined GetCommandLineA Stuff like this has made me give up on DMC in the past... Yes there are some clues in the newsgroup archives, but it remains to be a real chore. Jan 20 2007
Brecht Machiels wrote:Any ideas? Jan 20 2007
Walter Bright wrote:Brecht Machiels wrote:Any ideas? Jan 21 2007
Brecht Machiels wrote:So it definitely complains when it doesn't find a lib. I suspect the link errors have something to do with the decoration of function names. It always seems to come down to that. Jan 21 2007
"Brecht Machiels" wrote:I'd like to replace the slow MinGW GCC with DMC. Jan 20 2007
LoadLibraryA and getmodulehandleA suggest failures with linking with unicode/ansi It's unlikely that libraries compiled for Borland would link with DMC chris Brecht Machiels wrote:Hello, I'd like to replace the slow MinGW GCC with DMC. Unfortunately, DMC doesn't seem to be supported by any of the libraries I use, so I have to waste time with implib and/or adjusting makefiles to generate the .lib files to link with. I've been having "fun" for a couple of hours now trying to compile a very simple SDL application. Fortunately SDL comes with libs for the Borland compiler. I'm currently stuck at the following error message (during linking): "OPTLINK : Warning 134: No Start Address" Doing some more googling, I came across a tip to specify /ENTRY. Using "/ENTRY:WinMain" gets me a little bit further: C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined __streams C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined GetModuleHandleA C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined _SDL_main C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined ___alloca_helper C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined LoadLibraryA C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined FreeLibrary C:\Program Files\dm\local\lib\SDLmain.lib(SDL_main) Error 42: Symbol Undefined GetCommandLineA Stuff like this has made me give up on DMC in the past... Yes there are some clues in the newsgroup archives, but it remains to be a real chore. And once I finally get the SDL library to link properly with my little application, I soon will have similar wonderful adventures with libpng, libz, libjpeg and many others! :( Is there perhaps a repository of pre-built libs for DMC, or perhaps a straight-forward guide to work with third party libraries (a wiki perhaps)? Something in the style of the Dev-C++ devpacks would be a godsend. Please help me get past this library-hacking, so I can do what I wanted to do in the first place: compile *my* code. I apologize for any traces of sarcasm in the above. Regards, soon-to-go-berserk Brecht Jan 22 2007
Hello, chris elliott wrote:LoadLibraryA and getmodulehandleA suggest failures with linking with unicode/ansi It's unlikely that libraries compiled for Borland would link with DMC Jan 23 2007
"Brecht Machiels" <brecht mos6581.org> schrieb im Newsbeitrag news:eoteav$28dg$1 digitaldaemon.com...Hello, I'd like to replace the slow MinGW GCC with DMC. Unfortunately, DMC doesn't seem to be supported by any of the libraries I use, so I have to waste time with implib and/or adjusting makefiles to generate the .lib files to link with. Jan 28 2007
|