https://sourceware.org/bugzilla/show_bug.cgi?id=17480
Bug ID: 17480
Summary: Failed to create shared library on Windows with
__attribute__((__dllexport__, weak))
Product: binutils
Version: 2.23
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: antoshkka at gmail dot com
Compiling the following 1 line program:
__attribute__((__dllexport__, weak)) void* p = 0;
with the following command:
g++ -shared ld_test.c -LD:\mingw64\lib
produces error:
Cannot export p: symbol wrong type (2 vs 3)
collect2.exe: error: ld returned 1 exit status
Mixing same attributes on Windows+MSVC and Clang+Linux, GCC+Linux work well.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils