Thread: header files

  1. #1
    Registered User
    Join Date
    Feb 2012
    Posts
    347

    header files

    Hi All,

    I was trying to find the range of different data types from the header file limits.h file. But when i tried to search for the limits.h file in the cygwin installation folder, i found several limits.h files. Which one is the actual file? Was there a mistake in my installation? Please help.

    Thanks in advance,

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Satya
    I was trying to find the range of different data types from the header file limits.h file. But when i tried to search for the limits.h file in the cygwin installation folder, i found several limits.h files. Which one is the actual file?
    You should be able to #include <limits.h> with the correct header getting included. As for which is that header file: open them and take a look. It could well be that the header that is directly included is the file at the base directory, but it includes one or more of the other header files also named limits.h in various subdirectories.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. #include header files or .cpp files?
    By DoctorX in forum C++ Programming
    Replies: 3
    Last Post: 12-23-2006, 12:21 PM
  2. Linking header files, Source files and main program(Accel. C++)
    By Daniel Primed in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 11:46 AM
  3. Replies: 4
    Last Post: 12-14-2005, 02:21 PM
  4. include library header in header files
    By Raison in forum C++ Programming
    Replies: 6
    Last Post: 09-27-2004, 02:50 AM
  5. header files and code files..
    By CompiledMonkey in forum C++ Programming
    Replies: 4
    Last Post: 02-15-2002, 09:35 AM