Hi John,

John Legato <[EMAIL PROTECTED]> writes:

> gcc -Wall -I//home/jlegato/SOSlibWIn/xerces/include -I../../include
> -L//home/jlegato/SOSlibWIn/xerces/lib -L../../src -o convertSBML
> convertSBML.c util.c -lxerces-c -l
> sbml -lstdc++ -lm
> ../../src/libsbml.a(SBMLWriter.o): In function
> `_ZN11xercesc_2_710XMLDeleterD1Ev':
> //home/jlegato/SOSlibWIn/xerces/include/xercesc/util/PlatformUtils.hpp:847:
> undefined reference to
> `xercesc_2_7::XMLUni::fgXercescDefaultLocale'

>From the above it appears that libsbml is build as an archive (.a). In
that case it make be a good idea to put -lxerces-c after it:

-lsbml -lxerces-c -lstdc++ -lm


Also I suggest that you use g++ instead of gcc for linking C++ applications.


hth,
-boris

-- 
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding

Reply via email to