From: Tobias Burnus on 31 Mar 2010 08:47 On 03/30/2010 12:53 PM, Pedro567 wrote: > We are having a problem to match properly a C struct exported as dll > using GNU g++ 4.4.0 with > a COMMON block in Fortran using GNU gfortran 4.4.0. Tt works properly > in Linux version, but not with > Mingw. Probably we are missing something in this platform. Any help > will be welcomme. I ask Kai Tietz, who is MinGW64 expert, and he said that you are missing a __declspec(dllexport) for "extern": > Code in C++ (compiled as a dll): > extern "C" > { > extern struct { As better? alternative he suggest to use the linker option --enable-runtime-pseudo-reloc-v2 (as pass-on option for the compiler: -Wl,--enable-runtime-pseudo-reloc-v2); however, that requires a rather new MinGW runtime and binutils. Tobias
|
Pages: 1 Prev: Constructor for a type with pointer component Next: Strange behavior of 'imported' variable |