This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
can gcc output prototypes for later linking my lib?
- From: "Murat Ünalan" <murat dot uenalan at gmx dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 24 Jul 2004 20:34:27 +0200 (MEST)
- Subject: can gcc output prototypes for later linking my lib?
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