Thread View: gnu.gcc.help
1 messages
1 total messages
Started by Zakir H. Sahul
Sat, 14 Nov 1992 04:02
Function Prototyping Problem
Author: Zakir H. Sahul
Date: Sat, 14 Nov 1992 04:02
Date: Sat, 14 Nov 1992 04:02
33 lines
1293 bytes
1293 bytes
I have the following problem with using the -Wmissing-prototypes flag:
o All my function prototypes are in header files
o When I have more than one such header file included in the .c file,
gcc forgets the function prototypes declared in the earlier header files.
For example:
#include "function_decl.h"
#include "memory_func_decl.h"
main()
{
...
}
makes gcc forget the prototypes that are in "function_decl.h". It gives me a
warning: no previous prototype for `FunctionName'
But there is a prototype for it in the file "function_decl.h". If I remove
the second #include, it does not give me the warning.
It has been completely frustrating to get this to work. Could someone PLEASE
point me in the right direction??
Thanks in advance for all replies.
-Zak
(sahul@gloworm.stanford.edu)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads