Код: Выделить всё
#include
#include
#include
#include
using namespace OpenMS;
using namespace std;
Int main(){
PeakMap exp;
MzMLFile mzdata_file;
mzdata_file.load("../sampledata_Centroidmode.mzML",exp);
GaussFilter g;
Param param;
param.setValue("gaussian_width",1.0);
g.setParameters(param);
g.filterExperiment(exp);
return 0;
}
Код: Выделить всё
g++ -Wall -IOpenMS-1.7.0/include -IOpenMS-1.7.0/contrib/include -I/Library/Frameworks/QtCore.framework/Headers -arch i386 scratch.cpp
Код: Выделить всё
Undefined symbols:
"OpenMS::DataValue::DataValue(int)", referenced from:
OpenMS::Internal::MzMLHandler::handleUserParam_(OpenMS::String const&, OpenMS::String const&, OpenMS::String const&, OpenMS::String const&, OpenMS::String const&)in cc7cSzjW.o
"OpenMS::DataValue::DataValue()", referenced from:
OpenMS::Internal::MzMLHandler::handleUserParam_(OpenMS::String const&, OpenMS::String const&, OpenMS::String const&, OpenMS::String const&, OpenMS::String const&)in cc7cSzjW.o
"OpenMS::SourceFile::operator!=(OpenMS::SourceFile const&) const", referenced from:
OpenMS::Internal::MzMLHandler::writeTo(std::basic_ostream&)in cc7cSzjW.o
OpenMS::Internal::MzMLHandler::writeTo(std::basic_ostream&)in cc7cSzjW.o
OpenMS::Internal::MzMLHandler::writeTo(std::basic_ostream&)in cc7cSzjW.o
Код: Выделить всё
ld: symbol(s) not found
collect2: ld returned 1 exit status
Подробнее здесь: https://stackoverflow.com/questions/411 ... -namespace
Мобильная версия