1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

compile C++ in linux OS in 64-bit mode

Discussion in 'C++' started by wweiy, Nov 6, 2007.

  1. wweiy

    wweiy New Member

    Nov 6, 2007
    Likes Received:
    Trophy Points:
    Hi all,
    I am now using icpc/icc10 to compile my C++ code in 32-bit mode, it can work fro both 32-bit and 64-bit linux suse machine.
    However, when i try to compile the same code in 64-bit mode by using 64-bit machine, it shows an error message below:
    /usr/include/g++/iostream(44): catastrophic error: could not open source file "bits/c++config.h"
    #include <bits/c++config.h>
    How to solve this problem? The command i use to compile my code is:
    > icpc -D_FILE_OFFSET_BITS=64 -c -w0 -cxxlib -no-ipo -i-dynamic sample.C

Share This Page