Hi everybody,
I'm having problem with the Intel compiler on Linux that I can't seem to
find a solution for.
For some reason icc uses the gcc stdlib headers for things like cmath.
These use compiler-specific builtin functions that the intel compilers
doesn't know, so linking fails. I've cut it down to the following
program:
#include <cmath>
#include <iostream>
int main(int argc, char *argv[])
{
std::cout << std::exp(1.f) << std::endl;
return 0;
}
Trying to compile this results in:
% icc -o mtest mtest.cpp
/tmp/iccOOwkqX.o(.text+0x1a): In function `main':
: undefined reference to `__builtin_expf'
Am I the only one having that problem? Any ideas how to solve it?
Thanks
Dirk
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users