[csw-maintainers] need help with C++ linker error from Sun's linker
John Ellson
ellson at opencsw.org
Wed May 27 20:25:50 CEST 2009
If I compile liblasi (mgar/pkg/liblasi/trunk) using g++ it compiles and
links without problem.
If I use Sun's tools (remove the line: "CXX=/opt/csw/gcc4/bin/g++ \"
from the Makefile)
then I get this error:
/opt/studio/SOS11/SUNWspro/bin/CC -KPIC
CMakeFiles/example0.dir/MissingGlyphExample.o -o example0
-L/opt/csw/lib
-L/home/ellson/mgar/pkg/liblasi/trunk/work/build-isa-sparcv8/libLASi-1.1.0/src
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -lpangoft2-1.0
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -lfreetype -lz
../src/libLASi.so.0.0.1 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0
-lglib-2.0 -lintl -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0
-lglib-2.0 -lintl -lpangoft2-1.0 -lfreetype -lz -lm
-R/opt/csw/lib:/home/ellson/mgar/pkg/liblasi/trunk/work/build-isa-sparcv8/libLASi-1.1.0/src
Undefined first referenced
symbol in file
void LASi::PostscriptDocument::setFont(const
char*const,LASi::FontStyle,LASi::FontWeight,LASi::FontVariant,LASi::FontStretch)
CMakeFiles/example0.dir/MissingGlyphExample.o
ld: fatal: Symbol referencing errors. No output written to example0
There's something odd about the "const char*const" but I don't know if
thats related.
Does anyone have any idea what the problem is, and how to fix it, or
work around it so as to be able to use Sun's tools?
John
More information about the maintainers
mailing list