Opening prebuilt headers?

This is a discussion on Opening prebuilt headers? within the C++ Programming forums, part of the General Programming Boards category; How would I look at a prebuilt header file? I want to look at the standard library templates. queue, stack, ...

  1. #1
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589

    Question Opening prebuilt headers?

    How would I look at a prebuilt header file?
    I want to look at the standard library templates.
    queue, stack, etc.
    How would I find them?
    How would I look at the actual code?
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,497
    > How would I look at a prebuilt header file?
    Use a text editor - the one you use for editing code for example

    > How would I find them?
    If you're on windows, try the "inc" or "include" directory of wherever the compiler is installed.
    On unix/linux, it's usually /usr/include

    > How would I look at the actual code?
    You can get the source code for GCC based stuff off the net
    If you're using a closed compiler like VC++, forget it.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589
    > How would I look at the actual code?
    You can get the source code for GCC based stuff off the net
    If you're using a closed compiler like VC++, forget it.

    I am using msvc++.
    does this mean the code is hidden?
    if it is a standard library file why would they not let you see the code?
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  4. #4
    Registered User
    Join Date
    Jun 2003
    Posts
    245
    The standard version of msvc++ does not come with the source code, although other versions do (but cost a lot more money).

    Have a look in the "crt" directory - if there's a directory in there called "src", then your in luck.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. need help with file opening errors
    By lld4rkll in forum C++ Programming
    Replies: 6
    Last Post: 07-13-2006, 06:20 AM
  2. im extreamly new help
    By rigo305 in forum C++ Programming
    Replies: 27
    Last Post: 04-23-2004, 11:22 PM
  3. include question
    By Wanted420 in forum C++ Programming
    Replies: 8
    Last Post: 10-17-2003, 03:49 AM
  4. Headers that use each other
    By nickname_changed in forum C++ Programming
    Replies: 7
    Last Post: 10-03-2003, 04:25 AM
  5. Help with headers (conio.h etc)
    By ofthedove in forum C++ Programming
    Replies: 2
    Last Post: 02-24-2003, 01:44 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21