0

I am trying to build an appliction based upon the pcredemo application. When I try and compile the application in Windows I get the following compiler errors.

undefined reference to `_imp__pcre_compile'|
undefined reference to `_imp__pcre_exec'|
undefined reference to `_imp__pcre_free'|

Am I missing some .dll files or something?

Dunc
  • 7,688
  • 10
  • 31
  • 38

2 Answers2

1

Those are linker errors. You need to make sure that you are passing the PCRE .lib files to the linker. Another possible problem could be that your compiler/linker is using a different .lib file format from that used to build the PCRE .lib files.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
0

If you are linking PCRE statically, you need to #define PCRE_STATIC before compiling.

BugSquasher
  • 335
  • 1
  • 13