As far as I know there is no option to create a static library in
version 4.0, 4.01. There is an option to create static libraries in
Dev-C++ 4.9.1.0 beta, although
I've had nothing but problems trying to work with that version.
You can use the minGW compiler that comes with the DevC++ 4.0.1 release,
and just use the "ar -r mylib.a *.o" command in a dos command window.
That will create a library for you. Oh yeah don't forget to bless it
with "ranlib mylib.a".
Make sure the the Dev-C++/Bin directory is in your path. Just go to the
directory in which you have your object files, *.o and type in the
commands.
Setting the path is different depending on what type of operating system
you use.
This procedure works as long as your library is not dependent on other
libraries, such as openGL, or even the math library.
I can't get my static libraries to link with my projects when they have
other library dependencies.
You can try downloading the new version 4.9.2.0 beta, that may fix the
problem also.
Have fun.
Bobby
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Joe
Adkins
Sent: Sunday, April 14, 2002 10:55 PM
To: dev...@li...
Subject: [Dev-C++] How do I create a static library in DevC++?
I have no clue as to how to do this. Thanks in advance for the help.
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|