1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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

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

  1. wweiy

    wweiy New Member

    Joined:
    Nov 6, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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