public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Compiling C++ with 3rd-party C libraries with old-style #includes
@ 2001-12-07 16:16 Leonid A Broukhis
  0 siblings, 0 replies; only message in thread
From: Leonid A Broukhis @ 2001-12-07 16:16 UTC (permalink / raw)
  To: gcc-help


I need to compile a C++ program that links with a 3rd-party C library
that supplies the include files in the form 

#ifdef __cplusplus
extern "C" {
#endif

extern int func1();
extern char * func2();
...

#ifdef __cplusplus
} /* extern "C" */
#endif

where func1(), func2(), etc. do have some arguments. With egcs-1.1.2
everything compiles and works, but gcc-3.0.2 complains about too many
arguments for func1, func2, etc. -fno-strict-prototypes does not help.

No modification of the 3rd-party include file is possible, neither
a C++ code change that introduces another level of function call -
it is a time-critical part of code. How do I force it to compile?!

Thanks,
	Leo

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-12-08  0:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-07 16:16 Compiling C++ with 3rd-party C libraries with old-style #includes Leonid A Broukhis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).