|
From: Vadim Z. <vz...@ze...> - 2015-03-06 12:29:15
|
On Wed, 4 Mar 2015 20:35:19 +0000 Timothy Mazurco <tma...@al...> wrote: TM> After adding my custom module and all source files to Swig in a visual TM> studio solution I'm getting the following errors. TM> Error 8 error LNK1120: 4 unresolved externals D:\Sandboxes\HML2Gui\third_party\swig\altair_swig-2.0.11\x64\Debug\Swig.exe 1 1 Swig TM> Error 6 error LNK2001: unresolved external symbol __imp_pcre_compile D:\Sandboxes\HML2Gui\third_party\swig\altair_swig-2.0.11\naming.obj Swig TM> Error 4 error LNK2001: unresolved external symbol __imp_pcre_exec D:\Sandboxes\HML2Gui\third_party\swig\altair_swig-2.0.11\naming.obj Swig TM> Error 1 error LNK2001: unresolved external symbol __imp_pcre_free D:\Sandboxes\HML2Gui\third_party\swig\altair_swig-2.0.11\misc.obj Swig TM> Error 2 error LNK2001: unresolved external symbol __imp_pcre_free D:\Sandboxes\HML2Gui\third_party\swig\altair_swig-2.0.11\naming.obj Swig TM> Error 5 error LNK2019: unresolved external symbol __imp_pcre_compile referenced in function Swig_string_regex D:\Sandboxes\HML2Gui\third_party\swig\altair_swig-2.0.11\misc.obj Swig TM> Error 3 error LNK2019: unresolved external symbol __imp_pcre_exec referenced in function Swig_string_regex D:\Sandboxes\HML2Gui\third_party\swig\altair_swig-2.0.11\misc.obj Swig TM> Error 7 error LNK2019: unresolved external symbol __imp_pcre_version referenced in function Swig_pcre_version D:\Sandboxes\HML2Gui\third_party\swig\altair_swig-2.0.11\misc.obj Swig TM> TM> Any ideas on what pcre library I need and how to integrate it into my TM> Swig solution? There is only one PCRE library (see http://www.pcre.org/) and you do need to build it. What surprises me is that you must already be having its headers (otherwise compilation would have failed before), so you probably already downloaded it, didn't you? FWIW PCRE is very simple to build, it's just a bunch of .c files. Not being C++ it can be built with any compiler, even g++ if it is simpler. Alternatively, you can always set HAVE_PCRE to 0 in your swigconfig.h if you don't need this functionality. Regards, VZ |