Results 1 to 3 of 3

Thread: Ubuntu 16.04 and gcc problem

  1. #1
    Join Date
    Apr 2014
    Beans
    81

    Ubuntu 16.04 and gcc problem

    I am running Ubuntu 16.04 and I can successfully use the default 64-bit version of gcc to compile 64-bit code with the -m64 compiler switch. Yet when I try to use the same default 64-bit version of gcc to compile 32-bit code using the -m32 compiler switch I receive during the compilation the error:

    /usr/include/c++/5/cstdio:41:28: fatal error: bits/c++config.h: No such file or directory
    compilation terminated.

    I know I should be able to compile both 64-bit code and 32-bit code with the 64-bit gcc compiler, but it looks like I am missing some header file for 32-bit compilation. Does anyone know how I can determine which package I need to install which includes the 'bits/c++config.h' header file ?

  2. #2
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Ubuntu 16.04 and gcc problem

    IIRC you need to install the `gcc-multilib` package (and for C++, the `g++-multilib` package)
    Last edited by steeldriver; January 3rd, 2017 at 03:37 AM.

  3. #3
    Join Date
    Apr 2014
    Beans
    81

    Re: Ubuntu 16.04 and gcc problem

    Quote Originally Posted by steeldriver View Post
    IIRC you need to install the `gcc-multilib` package (and for C++, the `g++-multilib` package)
    That worked ! Thanks !

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •