Click to See Complete Forum and Search --> : Has anyone worked with devC++
SeventhStar
February 23rd, 2003, 06:28 AM
I have a few problems with my dev c++ compiler...
1. How to link my programs with dll's
2. How to link my programs with lib's
3. How to add the packages from their site
I doubt someone can answer this but...
Thanks for any help
Paul McKenzie
February 23rd, 2003, 08:03 AM
Try this site:
http://www.mingw.org/mingw-oldfaq.shtml
I have used Dev C++, however I've only used the LoadLibrary / GetProcAddress approach if I want to call a function from a non-system DLL.
I wanted to test one of my DLL's against various compilers, including Dev C++. LoadLibrary / GetProcAddress worked all the time for any Windows C++ compiler. This saved a lot of testing time, since I didn't need to figure out how to create lib files for the various compilers.
Regards,
Paul McKenzie
JamesSchumacher
February 24th, 2003, 10:53 PM
The old '#pragma comment(lib,"YOURDLLS_LIBFILE.LIB")' which originated on MSVC++ (I think????) that works on Borland too MIGHT work on that GNU port since it seems to work on other compilers - don't know though, never tried.
deesan
February 25th, 2003, 01:04 AM
Linking static library:
If your library name is "libNAME.a"
go to project settings and in additional link options add "-lNAME"
I don't know any way to link program with MSVC's *.lib files.
SeventhStar
February 25th, 2003, 01:15 AM
Originally posted by deesan
Linking static library:
If your library name is "libNAME.a"
go to project settings and in additional link options add "-lNAME"
I don't know any way to link program with MSVC's *.lib files.
actually that's what i meant!! '.a' libararies... Thanks!
And thank you Paul! I didn't know that they had windows.h with LoadLibrary but they do ;)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.