hello all,
i use gcc 3.2.2 on my slackware system. The problem is
when is use functions in C++ programs, say assert()
the compiler does not complain even if i do not include
the header file. (there must be some auto header
inclusion going on). However because of this silly
reason i often get a compile error.
can i turn off this automatic header inclusion
so that the compiler flags errors ?
thanks in advance
automatic header inclusion
Moderator: Board moderators
automatic header inclusion
Long Live GNU!
Try renaming your files with a .CPP extension. I don't know about gcc, but in Borland compilers, they use the file extension to determine what type of action to take with the file. They aren't so strict with a .C file, but Borland compilers require that you explicity #include the right header files in .CPP files.
My ideas on solving programming problems are 91% common sense, practicality and luck, 8% pure knowledge, and 1% extreme Math.