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.

Attachment: cygcheck.out
Description: Binary data

--
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/

Reply via email to