public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* config.h automatically included ???
@ 1998-07-11  1:47 Pierre Dolmans
  0 siblings, 0 replies; only message in thread
From: Pierre Dolmans @ 1998-07-11  1:47 UTC (permalink / raw)
  To: gnu-win32

Hello,

I'm using a pre-compiler for embedded SQL, which produces a plain c-source
file with all #include statements already expanded.
When I compile this c-source with gcc, I get "redefinition" errors...

//d/Cygnus/include/sys/config.h:91: redefinition of '__int32_t'
//d/Cygnus/include/sys/config.h:91: '__int32_t' previously declared here
//d/Cygnus/include/sys/config.h:92: redefinition of '__uint32_t'
//d/Cygnus/include/sys/config.h:92: '__uint32_t' previously declared here

I searched the source file, and it only contains 1 definition of __int32_t
and __uint32_t, and it doesn't contain a single #include statement.
(As I said before, the file has already been pre-compiled, and all #include
statements have been expanded and the original location of the #include is
marked by #line-statements which allow the compiler to determine the
original line number and source in case of errors during parsing).

Appearantly, the config.h file is included automatically during compilation,
without the need for a #include.

I solved the problem by adding -D__SYS_CONFIG_H__ to my compiler command,
but I guess there must be a cleaner way of doing this..
Where do I find the full syntax of gcc (I tried -? and -help) ?

Regards,
Pierre Dolmans


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

only message in thread, other threads:[~1998-07-11  1:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-07-11  1:47 config.h automatically included ??? Pierre Dolmans

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).