two dll's - why is that?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Alex

two dll's - why is that?

Post by Alex »

well i wonder why there is a dll (and lib) for vc++ and one for dev-cpp (mingw)? i thought that dll and library files follow some standards - opengl for instance only has one opengl32.dll for all (dunno about the libs here)
Luke923
Posts: 59
Joined: Wed Nov 05, 2003 5:26 am

Post by Luke923 »

The DLL is for run-time, while the LIB is for compile-time - at least as far as I understand it. I don't know about Dev-C++, though.

Hope that helps.
"Object-oriented programming is an exceptionally bad idea which could only have originated in California."
- E.W. Dijkstra
Guest

Post by Guest »

mhh i knew that, but what i asked myself is: why can't i use the SAME lib for mingw and vc++ and why can't i use the SAME dll for exe's compiled with vc and mingw? and maybe someone can answer me the question: where is the difference between em?
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

They are linked from the program to the DLL differently depending on the compiler. LIB's are only used in VC++ ( haven't used BCB, the might do it as well ) and the actual DLL's created are differnent. I can't read binary code to be able to tell you the differences but I doubt you care in that much detail anyway :)
Guest

Post by Guest »

Tyn wrote:and the actual DLL's created are differnent.
so why is it possible to only have one opengl32.dll? :)
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

Dev-cpp seems to "prefer" the .a static libraries, but it can use .lib. Many dll's and lib's work with both Mingw and VC++ (Newton Game Dynamics and Audiere are two that I use) so this is a valid question. Why did niko need to make two different dll's? If MingW could use an IrrLicht dll compiled by VC++ it would be easier for us Dev-cpp people to have DirectX without needing a couple extra dll's.
Guest

Post by Guest »

Tyn wrote:I can't read binary code to be able to tell you the differences but I doubt you care in that much detail anyway :)
maybe not inTHAT much detail (even if i played around with .exe files + hex editor sometimes) though i'm pretty much interested on how stuff works at low level
even if no one can explain what the difference actually is but maybe got some links concerning that topic? (libraries, dlls / dynamic shared objects, (runtime) linker ..)
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

Google them and you will more than likely find some info.
Post Reply