www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/03/30/09:08:43

Date: Thu, 30 Mar 1995 12:30:30 GMT
From: ttgrx AT win DOT tue DOT nl (Erwin Kok)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Linking C to C++

Dear John,

I know you've solved the problem but maby you can try this:

Rename the file generated by Bison from xxx.c to xxx.cc 

I think Bison generates statements like:

#ifdef _cplusplus

....

#endif

So when you feed this file to gcc, it treats it as an C++ file and everything
should by OK (The names are mangled, the proper defines are included, etc.)

I generated Bison files at home and rename them to .cc files and it worked, 
so I hope this works for you too. :-)

Many greetings, 

Erwin.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019