Re: [pcre-dev] pcre static build on mingw32, no joy so far.

Pàgina inicial
Delete this message
Autor: David Mathog
Data:  
A: pcre-dev
Assumpte: Re: [pcre-dev] pcre static build on mingw32, no joy so far.

> Try to build my application (variations of the following work fine on
> linux and solaris, albeit dynamic linking in both of those cases):
> $ gcc -Wall -std=c99 -pedantic -lm -O3 -DMAXINFILE=20 \
> -lpcre -I/usr/local/include -L/usr/local/lib \
> -static -DPCRE_STATIC -o extract extract.c


The preceding doesn't work, but this one does:

gcc -Wall -std=c99 -pedantic -lm -O3 -DMAXINFILE=20 \
-I/usr/local/include -static -DPCRE_STATIC \
-o extract extract.c /usr/local/lib/libpcre.a

I would have thought the two forms were equivalent, but apparently not.

Regards,

David Mathog
mathog@???
Manager, Sequence Analysis Facility, Biology Division, Caltech