From: Werner S. <sm...@ia...> - 2007-06-27 06:16:08
|
Hi Simon, Simon Lundell wrote: > I am getting undefined references to _imp__HPDF_methodname, see below. > Am I missing some lib that should be linked in? Is there some problem > with name decoration? I think plplot awaits a shared pdf lib, while you compiled the static lib. You can see from the output of the compiler what functions it wants (the _imp_HPDF stuff). You can check with various tools what functions a library contains, e.g. with the mingw command "nm" or "impdef" - you'll see that these function names are not provided in the library. Reason is that in "cmake/modules/pdf.cmake" I added "-DHPDF_DLL" into the compiler options, since I assumed for the moment, that everybody is using the shared library. If you delete this from the cmake file, it should than compile. I haven't tested it, but this should be the solution. Regards, Werner -- Dipl. Ing. Werner Smekal Institut fuer Allgemeine Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria email: sm...@ia... web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office) +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 |