public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* [C++] anonymous struct linkage
@ 2012-11-22 15:44 LAMOME Julien CS-SI
  2012-11-22 15:49 ` Andrew Haley
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: LAMOME Julien CS-SI @ 2012-11-22 15:44 UTC (permalink / raw)
  To: gcc-help

Hi,
we have a code mixing C++ and Fortran 77. In fortran, we have some COMMON like :
COMMON / DEMOF/VARIABLE
Which are include in fortran source file like this :
#include <demof.include>

We link with C++ code like this :
struct { double variable}demof ;

The problem is : 
Between gcc 4.3 and gcc 4.6, the linkage of demof (in C++) change from global to local. This breaks the link between C++ and fortran.

How can I restore the global linkage in gcc 4.6 ?

Thanks you for your help.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-11-26 15:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-22 15:44 [C++] anonymous struct linkage LAMOME Julien CS-SI
2012-11-22 15:49 ` Andrew Haley
2012-11-22 18:53 ` Ángel González
2012-11-22 21:03 ` Jonathan Wakely
2012-11-22 21:06   ` Jonathan Wakely
2012-11-23  7:58     ` LAMOME Julien CS-SI
2012-11-23  9:37       ` Jonathan Wakely
2012-11-26 15:49       ` Ángel González

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