<html><div style='background-color:'><DIV>
<P>From personal experience, I have found out that reimp.exe and coff2omf.exe only work with non-static libraries (I tried to convert glaux.lib from VC6 to Borland and GCC). I noticed that using </P>
<P><STRONG>gcc -c file.cpp</STRONG></P>
<P>then renaming the object file created lib<STRONG>file</STRONG>.a works all the time (you may have to use <STRONG>g++</STRONG> if you are using classes). While running a small test to make a static libary, i noticed this in the compiler log </P>
<P>make.exe -f "C:\Dev-Cpp\Makefile.win" all<BR>ar r Project1.a file.o <BR>ranlib Project1.a</P>
<P><STRONG>ar </STRONG>and <STRONG>ranlib</STRONG> seems to be the command tools you need. Hope that helps.<BR><BR></P></DIV>
<DIV></DIV>----Original Message Follows----
<DIV></DIV>From: Carlos García del Monte <SOL...@YA...>
<DIV></DIV>To: age...@co...
<DIV></DIV>CC: DevCpp User Group <DEV...@LI...>
<DIV></DIV>Subject: Re: [Dev-C++] .cpp to .lib or .a
<DIV></DIV>Date: Sat, 20 Sep 2003 17:51:54 +0200
<DIV></DIV><mailto:dev...@li...?subject=help><mailto:dev...@li...><mailto:dev...@li...?subject=subscribe>
<DIV></DIV>List-Id: Dev-C++ users mailing list <DEV-CPP-USERS.LISTS.SOURCEFORGE.NET>
<DIV></DIV><mailto:dev...@li...?subject=unsubscribe><HTTP: forum.php?forum="dev-cpp-users" mailarchive sourceforge.net>
<DIV></DIV>X-Original-Date: Sat, 20 Sep 2003 17:51:54 +0200
<DIV></DIV>Return-Path: dev...@li...
<DIV></DIV>X-OriginalArrivalTime: 20 Sep 2003 15:55:50.0904 (UTC) FILETIME=[AA333780:01C37F8F]
<DIV></DIV>
<DIV></DIV>For what I know about it the .a format is the same than the .lib for MSVisual C++ (coff), so you shall only need a rename of the .a file to .lib; if you want use it for Borland, which uses OMF format, you need run coff2omf.exe, which is in the binary folder of Borland.
<DIV></DIV>If that doesn't work, then it seems you'll need use reimp, if you need it (I don't think so), email me and I'll send it to you, it's small and it seems not very easy to find.
<DIV></DIV>
<DIV></DIV>Hope it works.
<DIV></DIV>
<DIV></DIV>age...@co... wrote:
<DIV></DIV>
<DIV></DIV>>I have been wanting to write my own library of classes that perform
<DIV></DIV>>OpenGL functions in order to reuse code effectivley. I was thinking
<DIV></DIV>>about adding the declerations in a .h file, and writing the actual
<DIV></DIV>>definitions in a .cpp file, which i would convert to a .lib file.
<DIV></DIV>>Dev-C++ uses .a, so would I just run the project static library to
<DIV></DIV>>make the .a file, or is there a command line utility which takes a
<DIV></DIV>>.cpp file and makes it into a .a file? Thank you for replies in
<DIV></DIV>>advance.
<DIV></DIV>>
<DIV></DIV>>--
<DIV></DIV>>~~Scott Simontis~~
<DIV></DIV>>Programmer
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>-------------------------------------------------------
<DIV></DIV>>This sf.net email is sponsored by:ThinkGeek
<DIV></DIV>>Welcome to geek heaven.
<DIV></DIV>>http://thinkgeek.com/sf
<DIV></DIV>>_______________________________________________
<DIV></DIV>>Dev-cpp-users mailing list
<DIV></DIV>>Dev...@li...
<DIV></DIV>>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
<DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>-------------------------------------------------------
<DIV></DIV>This sf.net email is sponsored by:ThinkGeek
<DIV></DIV>Welcome to geek heaven.
<DIV></DIV>http://thinkgeek.com/sf
<DIV></DIV>_______________________________________________
<DIV></DIV>Dev-cpp-users mailing list
<DIV></DIV>Dev...@li...
<DIV></DIV>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
<DIV></DIV>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
<DIV></DIV></mailto:dev...@li...?subject=unsubscribe></mailto:dev...@li...?subject=subscribe></mailto:dev...@li...></mailto:dev...@li...?subject=help></div><br clear=all><hr>Add photos to your e-mail with <a href="http://g.msn.com/8HMBEN/2746??PS=">MSN 8.</a> Get 2 months FREE*.</html>
|