can gcc output prototypes for later linking my lib?
"Murat Ünalan"
murat.uenalan@gmx.de
Sat Jul 24 18:34:00 GMT 2004
Isn't there any magic gcc option that spits out something like a
mylib_protos.h file that contains just the fdecls within the original lib
code like
extern void mylib_func(...);
....
Problem: i wrote a huge mylib. Maintaining the redundant list of function
declerations for the mylib_protos.h header file with "extern void
myfunc(...);" prototypes became really a mess.
PS: Some recdescent parsers may be able to parse c header files and spit out
the putatie prototypes. But they are surely not as robust as a native gcc
approach. protoize also doesn't seem to be the solution while the code may
be transformed to solve my problem.
Surely a FAQ candidate+TIA,
Murat
--
+++ GMX DSL-Tarife 3 Monate gratis* +++ Nur bis 25.7.2004 +++
Bis 24.000 MB oder 300 Freistunden inkl. http://www.gmx.net/de/go/dsl
More information about the Gcc-help
mailing list