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
Printable View
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
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.
You've got that backwards.Quote:
Normally a header file includes a coressponding .c file, and possibly other .h files, which themselves include their .c files.