MTL Error when compiling source

MTL Error when compiling source

I have my source code that I want to compile at MTL. At my local PC it compiles and runs perfectly, wherea when I try to compile it at MTL I get:

../base/ClassA.o: In function `ClassA::str() const':
ClassA.cpp:(.text+0x374): undefined reference to `std::basic_ostream >& std::basic_ostream >::_M_insert(long)'
ClassA.cpp:(.text+0x389): undefined reference to `std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, long)'
ClassA.cpp:(.text+0x396): undefined reference to `std::basic_ostream >& std::basic_ostream >::_M_insert(long)'
ClassA.cpp:(.text+0x3ab): undefined reference to `std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, long)'
ClassA.cpp:(.text+0x3c2): undefined reference to `std::basic_ostream >& std::basic_ostream >::_M_insert(long)'
ClassA.cpp:(.text+0x3d7): undefined reference to `std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, long)'
ClassA.cpp:(.text+0x3ee): undefined reference to `std::basic_ostream >& std::basic_ostream >::_M_insert(long)'
../base/MatrixLoader.o: In function `DataLoader::newData()':


As I said, on local machine with linux and g++ it runs perfectly. I followed the compilation instructions for th MTL, I did the proper export:

export LD_LIBRARY_PATH=/opt/mpfr/lib:/opt/gmp/lib:/opt/mpc/lib

my compile configuration is: (upper half is for MTL, lower for my PC)

ifdef F_INTEL

PREFIX = /opt/gcc/${GCC_VERSION}/bin
CC = $(PREFIX)/gcc
CPP = $(PREFIX)/g++


COMPILEFLAGS += -std=c++0x
CPP = g++


Any hints? I don't want to miss deadlines because of some complilation problems : )

2 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.


usually, we setup the environment by sourcing an file :
source /opt/intel/Compiler/latest/bin/ intel64

you have other files for TBB, fortran, ...

regards, paul

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui