Thanks Toto , it did solve the compilation issue mentioned below.
However i am facing some more compilation errors while using sbml library .
I have build libSBML library in Windows 7 machine with MinGW compiler.
However while using the built library inside my program (console application) i am getting linking errors.
I have build libSBML statically using below commands:
1) export CXXFLAGS="-DLIBSBML_STATIC -DLIBLAX_STATIC -I ./dependencies/include
/xercescâ€
2) ./configure --enable-static --with-xerces=./dependencies --prefix="/home/LABS
9/outputLibSbml/"
3) make LDFLAGS=-no-undefined
//////////////////////////////////main.cpp//////////////////////////
#include <sbml/SBMLTypes.h>
#include <sbml/common/extern.h>
int main(int argc, char *argv[])
{
SBMLDocument* document;
SBMLReader reader;
return 0;
}
///////////////////////////////////////
/////////////////////error ////////////////////////////////////////////
debug/main.o: In function `main':
D:\QTSamples\TestSBML-build-desktop-Qt_4_8_0_for_Desktop_-_MinGW__Qt_SDK__Debug/../TestSBML/main.cpp:20: undefined reference to `_imp___ZN10SBMLReaderC1Ev'D:\QTSamples\TestSBML-build-desktop-Qt_4_8_0_for_Desktop_-_MinGW__Qt_SDK__Debug/../TestSBML/main.cpp:22: undefined reference to `_imp___ZN10SBMLReaderD1Ev'D:\QTSamples\TestSBML-build-desktop-Qt_4_8_0_for_Desktop_-_MinGW__Qt_SDK__Debug/../TestSBML/main.cpp:22: undefined reference to `_imp___ZN10SBMLReaderD1Ev'collect2: ld returned 1 exit status
////////////////////////////////////////////////////////////////////////////////////
//////////////////TestSBML.pro/////////////////////////////
TARGET = TestSBML
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
INCLUDEPATH +=../sbmlAll
LIBS+= -L"../sbmlAll/sbmllib" -lsbml
/////////////////////////////////////////////////////////////////////////////////////
Please let me know if any idea.
Thanks.





Reply With Quote

Bookmarks