Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Intel compiler missing libraray cstddef?

slowboy
Beginner
438 Views
Dear Sir/Madam,
I have been installed Intel compiler on fedora but when I try to compile tbb(threading building block) code using command
icc program.c -ltbb
It give error cstddef header file not found......
While on g++ it work fine.
I would like to ask that this header file cstddef is not part of intel compiler and we have to export it or I have some problem in intel compiler downloading or installation.
Thank you,
Waiting for your response
0 Kudos
1 Reply
TimP
Honored Contributor III
438 Views
If you want C++ and g++ functionality, you must invoke the C++ compiler icpc and name your source file so that it is recognized as C++. Then, those C++ standard headers which aren't provided by icpc would be found in the active g++ installation. icc should find the headers of gcc, not those which are reserved for g++.
If you have questions about tbb, there is a separate forum.
0 Kudos
Reply