Compiling headers

This is a discussion on Compiling headers within the C Programming forums, part of the General Programming Boards category; I have written all the declarations of functions and constants needed in my project in a file called filefunctions.h. And ...

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    12

    Compiling headers

    I have written all the declarations of functions and constants needed in my project in a file called filefunctions.h. And i added #include "filefunctions.h"
    in my program. But when I compile i m getting error message : no such file as filefunctions.h .. What should I do?
    Last edited by hello; 01-12-2009 at 09:28 AM.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,639
    You probably want to #include "filefunctions.h" instead.
    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

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    12
    yes..dat is wat i meant..but can u plz help me..

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,639
    If filefunctions.h in the same directory as your source files? If not, you might want to add its directory into the list of include directories. How to do that would depend on your compiler or IDE.
    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. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  2. include question
    By Wanted420 in forum C++ Programming
    Replies: 8
    Last Post: 10-17-2003, 03:49 AM
  3. Headers that use each other
    By nickname_changed in forum C++ Programming
    Replies: 7
    Last Post: 10-03-2003, 04:25 AM
  4. Chat Bot: Multiple headers problem
    By RoD in forum C++ Programming
    Replies: 4
    Last Post: 03-26-2003, 05:07 PM
  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