On 2007-06-26 23:52+0200 Simon Lundell wrote:

> Hi all!
>
> I have been trying to get plplot with pdf support to compile on mingw for
> quite some time now. The goal is to have a static lib that can plot and
> output it in pdf. I have used postscript output before and it works
> perfectly.
>
> 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?
> The steps i take to get this error:
> 1. download and compile libharu-2.0.8 source package for mingw. (cygwin with
> --nocygwin)
> 2. configure plplot-5.7.3 using cmake-setup, set PLD_pdf to on and give the
> library and include directories when asked. select to compile to static lib.
> 3. compile plplot using mingw32-make.exe
>
> The same error as below also occurs when plrender.exe is linked.
>
> Any suggestions, hints or ideas are wery welcome!
>
> Best regards,
> Simon
>
>
> g++.exe main.o logprocessor.o  -o "out.exe" -L"C:/Dev-Cpp/plplot-5.7.3/lib"
> -L"C:/Dev-Cpp/plplot-5.7.3/buildmingw/bindings/c++" -L"C:/Dev-Cpp/plplot-
> 5.7.3/buildmingw/src" -L"C:/Dev-Cpp/plplot-5.7.3/buildmingw/lib/csa"
> -L"C:/Dev-Cpp/libharu-2.0.8" -llibboost_regex-mgw-mt-s-1_33_1
> -llibboost_filesystem-mgw-mt-s-1_33_1 -lplplotcxxd -lplplotd -lcsirocsa
> -lgdi32 -lcomdlg32 -lhpdf
>
> C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x24e):
> pdf.c: undefined reference to [EMAIL PROTECTED]'
> C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x286):
> pdf.c: undefined reference to [EMAIL PROTECTED]'
[...]
>
> mingw32-make: *** [out.exe] Error 1
>
> Execution terminated
>

Disclaimer: I have no practical experience with the Cygwin platform.
Nevertheless, I can make some general comments. HPDF_FREE, for example, is
part of the libharu library, and it appears you are finding the headers for
that library without problems for the compile stage, but not the library
itself during the link stage.

* Where is the location of that library on your system?  Is the appropriate
   -L option -L"C:/Dev-Cpp/libharu-2.0.8 (taken from above) or is the library
   located in some sub-directory of that location?

* Have you set up cmake to look for the static version of the library, and
   that library only occurs as the shared version?

* LD_LIBRARY_PATH on Linux (and most Unix platforms) is required to find
   libraries at run time if they are installed in a non-standard location.
   So you are going to need that set properly for run-time.  But I assume
   it doesn't have anything to do with your above link-time troubles.

Hope these questions/comments help you to find the answer.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to