Precompiled Headers

This is a discussion on Precompiled Headers within the C++ Programming forums, part of the General Programming Boards category; I am using an application called Matlab as a data processing and plotting tool. Matlab has a compiler which will ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    9

    Precompiled Headers

    I am using an application called Matlab as a data processing and plotting tool. Matlab has a compiler which will compile its own code into C++ code which it claims can be built in MSC++ ver 5.0.

    However, when it has compiled it produces a number of .cpp files and associated .hpp files. I understand the .hpp files are precompiled header files and unlike the standard .h header files.

    I am unfamiliar with these, so could anyone help me to understand how I can build them in MSC++ ver 5.0

    Many thanks
    Bazz

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    Try to build them normally first. Sometimes people like to differentiate between C and C++ headerfiles by naming C++ headers .hpp.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Unregistered
    Guest
    try this:

    if the header files produced are stored in the same directory as the executable file of your program then include them in your program with double quotes in the list of files using the preprocessor command

    #include "whatever.hpp".

    Otherwise use the angled bracket technique #include <whatever.hpp>.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Precompiled header question
    By donglee in forum C++ Programming
    Replies: 13
    Last Post: 01-22-2009, 01:23 AM
  2. How to use precompiled headers in GCC?
    By jutirain in forum C++ Programming
    Replies: 0
    Last Post: 02-04-2008, 10:19 PM
  3. Precompiled headers
    By rokenrol in forum C Programming
    Replies: 2
    Last Post: 04-07-2007, 02:21 AM
  4. Headers that use each other
    By nickname_changed in forum C++ Programming
    Replies: 7
    Last Post: 10-03-2003, 05:25 AM
  5. Precompiled Headers, are they necessary?
    By XenoCodex Admin in forum C++ Programming
    Replies: 2
    Last Post: 06-23-2002, 03:09 PM

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