DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 8 of 8

Thread: #include <bits/c++config.h>

  1. #1
    Join Date
    Jul 2008

    #include <bits/c++config.h>

    Hello all

    currently, I was given a program, but it uses <bits/c++config> header file. It give error like "this file or directory can't be found". I searched for this library every where, but could not found. Can any body tell me, where can i find it, or any alternative solution?


  2. #2
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    What is the specific file name?

  3. #3
    Join Date
    Dec 2007
    bits/c++config.h is a header specific to g++
    if you are writing portable code, you would not include this header at all.
    but several standard C/C++ headers in GCC would include this header.

    if you try
    > find /usr -exec grep "bits/c++config" '{}' \; -print
    you would get a (very) long list containing things like
    #include <bits/c++config.h>
    #include <bits/c++config.h>
    #include <bits/c++config.h>
    #include <bits/c++config.h>
    if you want to find where the header file is, use the find or locate commands. eg.
    >locate bits/c++config

  4. #4
    Join Date
    Jul 2008
    I am confused what do you mean by exact name? any how you might be thinking weather it is <config>, or <c++config> or <bits/c++config>. This is stored whith the following name. some comment is also there, which is mentioned here below.

    #include <bits/c++config.h>

    "This header file provides a framework for allowing compile time dispatch
    based on type attributes. This is useful when writing template code.
    For example, when making a copy of an array of an unknown type, it helps
    to know if the type has a trivial copy constructor or not, to help decide
    if a memcpy can be used."

    The error message is:
    "fatal error C1083: Cannot open include file: 'bits/c++config.h': No such file or directory"

    Actually i need a program, which could sign a text message and then verify its signature. I got few such programs but when i run those in my computer, they need different libraries. I search for those libraries, some could not be find. for example the above one. so now I can't proceed. If i get a complete program with all of the availble libraries, my problem will be solved.


  5. #5
    Join Date
    Dec 2007
    > "fatal error C1083: Cannot open include file: 'bits/c++config.h': No such file or directory

    you are using visual C++ and not g++.

    > i need a program, which could sign a text message and then verify its signature.
    the easiest way with VC++ would be to use the win32 crypto api.
    sample program:
    Last edited by vijayan; 07-18-2008 at 02:32 PM.

  6. #6
    Join Date
    Jul 2008
    Ok thanks Vijayan i will try this example as well.
    and will come back to you all if there is some problem again.
    thanks for ur cooperation

  7. #7
    Join Date
    Jul 2008

    I dont know where to use those 'find' and 'locate' commands, but i tried it in the MSVS command prompt, but for the command 'find' it says 'Invalid switch', although, i changed the command in different ways, and for the 'locate' it says, 'its not recognised as an internal or externam command'. Could you please help me, and explain it. I am a bit new to MSVS environment. I need this header file by any means, as it has been used in many other programs.


  8. #8
    Join Date
    Dec 2003
    what everyone is saying is that you are trying to use X code on windows. This works about as well as using <windows.h> on a mac under g++ .... as in, it doesnt really work.
    Find, locate etc are unix commands (well, dos has find but not the same).

    What you want to do is install cygwin and get it working under that on windows. Then you can try to remove the os headers (slowly) to port it into visual, or, you can turn into a dll or library and call it from visual (once g++ makes it binary, you can use it, its a *windows* binary!).

Similar Threads

  1. SSH server
    By wklafghan in forum C++
    Replies: 6
    Last Post: 06-23-2008, 03:49 AM
  2. Replies: 3
    Last Post: 05-17-2008, 10:32 AM
  3. Server not accepting client connection.
    By ppuniversal in forum C++
    Replies: 1
    Last Post: 09-08-2007, 09:49 AM
  4. COM+ component testing - include ?
    By tommy_bugsy in forum C++
    Replies: 0
    Last Post: 02-27-2007, 07:13 PM
  5. Virtual Include files with local working mode
    By Brian Orrell in forum ASP.NET
    Replies: 0
    Last Post: 10-16-2000, 04:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center