problem linking to pcre
Rob Siklos
rob2@siklos.ca
Wed Apr 13 21:02:00 GMT 2005
Hi all,
I'm trying to port an app from linux to Cygwin, and it's choking when trying
to link to the pcre library.
When I compile (with "gcc -lpcre rob.c"), I get the message:
/c/DOCUME~1/rsiklos/LOCALS~1/Temp/cc7QPrgq.o(.text+0x44):rob.c: undefined
reference to `_pcre_compile'
collect2: ld returned 1 exit status
This is the program:
== rob.c =================================
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pcre.h>
int main () {
const char *err;
int erroffset;
pcre *ppat = pcre_compile("rob", 0, &err, &erroffset, NULL);
free(ppat);
return 0;
}
=======================================
any help would be greatly appreciated? (cygcheck output attached)
thanks,
rob.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 26041 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050413/208ac37b/attachment.obj>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list