Yet Not!!

This is a discussion on Yet Not!! within the C++ Programming forums, part of the General Programming Boards category; I was just compiling afx.h which i got from net. and another error pops up. Its linking error gcc: Compilation ...

  1. #1
    Registered User newbie_grg's Avatar
    Join Date
    Jul 2002
    Posts
    77

    Yet Not!!

    I was just compiling afx.h which i got from net. and another error pops up. Its linking error

    gcc: Compilation of header file requested
    gcc: file path prefix `C:\DEV-C_~1\Bin\' never used
    I compile usinf mingw compiler with dev c++ ver. 4.00
    "If knowledge can create problems, it is not through ignorance that we can solve them. "
    -Isaac Asimov(1920-1992)

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    It would be unusual for a header (.h) file to compile by itself. Normally a header file includes a coressponding .c file, and possibly other .h files, which themselves include their .c files.

    Because afx.h is NOT part of the C++ standard library, so I doubt anybody knows what it is, what compilers work with it, or what other files / libraries are required along with it.

    Here is some information from the Programming FAQ about why you generally can't use someone elses header files.

    And, also from the Programming FAQ, about using multiple source files.
    Last edited by DougDbug; 07-17-2003 at 02:38 PM.

  3. #3
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Normally a header file includes a coressponding .c file, and possibly other .h files, which themselves include their .c files.
    You've got that backwards.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

Popular pages Recent additions subscribe to a feed

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