Error: undefined reference to `_imp__pcre_malloc'

Charles Wilson cwilson@ece.gatech.edu
Wed Jul 12 14:31:00 GMT 2000


Andreas Bergstrøm wrote:
> 
> "Uwe H. Steinfeld" wrote:
> >
> > Hi Andreas,
> >
> > looks like you need the PCRE library (Perl-compatible regular expresions).
> > The latest version should be on
> > ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-xxx.tar.gz
> 
> Thanks for the information, but as far as I can see it is included with
> Exim. A pcre_malloc() is defined in the pcre.h file, but not
> _imp__pcre_malloc, which is the macro that make is complaining about.
> 
> So, I ask once again, is this a cygwin bug?
> 
> But, thanks anyway.
> 
> May you live long and spamless,
> 

You see _imp__ stuff when building/linking to dll's. Check your code for
'declspec(dllimport)' or 'declspec(dllexport)'. If you're not
building/linking to a dll, then these declspec things need to go away.
If you *are* building/linking to a dll, then you've got a lot of reading
in the mailing list archives to do yet, if you haven't already learned
about declspec.

--Chuck

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list