> 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
[email protected]
Manager, Sequence Analysis Facility, Biology Division, Caltech

-- 
## List details at https://lists.exim.org/mailman/listinfo/pcre-dev 

Reply via email to