This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47260] DLLEXPORT: TREE_PUBLIC for procedures lost between trans-decl.c and tree.c
- From: "craig.powers at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 13 Jan 2011 16:59:24 +0000
- Subject: [Bug fortran/47260] DLLEXPORT: TREE_PUBLIC for procedures lost between trans-decl.c and tree.c
- Auto-submitted: auto-generated
- References: <bug-47260-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47260
--- Comment #7 from Craig Powers <craig.powers at gmail dot com> 2011-01-13 16:59:18 UTC ---
(In reply to comment #6)
> I also was unable to get the procedure into a DLL with omission of DLLEXPORT,
> instead attempting to get it in using a .DEF file and either gfortran or
> dlltool. I'm not sure if that reflects another aspect of the same problem. If
> I do this:
> gfortran -shared -o test.dll test.def test.o typedata.o
>
> I get:
> Cannot export _compute_load_cpd@28: symbol not defined
>
> But if I look at the output of nm test.o, I see:
> 00000000 T _compute_load_cpd@28
Also, -fpic/-fPIC produces the same result.