[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/17480] New: Failed to create shared library on Windows with __at
From: |
antoshkka at gmail dot com |
Subject: |
[Bug ld/17480] New: Failed to create shared library on Windows with __attribute__((__dllexport__, weak)) |
Date: |
Mon, 13 Oct 2014 17:25:17 +0000 |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug ld/17480] New: Failed to create shared library on Windows with __attribute__((__dllexport__, weak)),
antoshkka at gmail dot com <=