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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice