|
-
February 23rd, 2003, 07:28 AM
#1
Has anyone worked with devC++
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
It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames
-
February 23rd, 2003, 09:03 AM
#2
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
-
February 24th, 2003, 11:53 PM
#3
From what I know....
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.
-
February 25th, 2003, 02:04 AM
#4
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.
-
February 25th, 2003, 02:15 AM
#5
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
It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|