Hi,
On Tue, 2005-07-05 at 21:16 +0100, Adrian Haffegee wrote:
> Hi Dirk,
>
> I'm not sure if it's the same problem, but we were having issues with
> icc 8.1 under Red Hat on our Prism system (after upgrading one of our
> service packs)
>
> Our fix was to download a new version of os_defines.h from Intel.
not really as this was a compile time error, one of the SGI updates
slipped in system headers containing inline assembler code which is
not understood by the intel compiler.
>
> On Tue, 2005-07-05 at 13:08 -0500, Dirk Reiners wrote:
> > Hi everybody,
> >
> > 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'
> >
hmm some more infos would be good ;-), like which compiler version. I
tried it with my Build 20050520Z Package ID: l_cc_pc_8.1.032 on top
of gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3) and it works.
dumbledore: gerrit/test% icc -o dr dr.cpp
dumbledore: gerrit/test% ./dr
2.71828
gerrit
-------------------------------------------------------
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