Re: mingw/msys with 2.4.9.6

Jean-Claude Wippler <[email protected]> Sun, 3 Dec 2006 01:00:56 +0100
Newsgroups gmane.comp.db.metakit
Message-ID <[email protected]>
Darel Finkbeiner wrote:

> I use this line to compile everything in the ./src directory:
> g++ -O3 -c *.cpp -Dq4_INLINE -I../include -I../win
>
> no problems, this works without any errors on 2.4.9.5 and 2.4.9.6  I
> then create a static lib using:
> ar -cq libmk4.a *.o
> ranlib libmk4.a
>
> Cool.  Then I try to compile it into my program with a -lmk4 switch.
>
> With 2.4.9.5 this works without problems.  In 2.4.9.6 however, I get
> undefined references for every call to metakit stuff.

Try replacing "-lmk4" with "libmk4.a" (including the proper path).
Also, make sure you compile your code with "Dq4_INLINE" as well.
If that's not it, then please post a summary of the errors you see.

-jcw


_____________________________________________
Metakit mailing list  -  [email protected]
http://www.equi4.com/mailman/listinfo/metakit