Using -flto-partition=1to1 or -flto-partition=none generally works
around these issues. I typically use 1to1 when using lto for anything
since I can rarely even get gcc to bootstrap correctly with lto
without it.
On Thu, May 21, 2015 at 8:09 AM, lh_mouse wrote:
> FWIW, you can try moving virtual
FWIW, you can try moving virtual function definitions out of header files, as
defining virtual functions inside headers is generally a bad idea.
(The story is much longer than that. Since the RTTI data of a polymorphic class
is linked/exported/whatever with one of its virtual functions, specific
This was a mistake from my last post. The -flto was passed to the linker,
and I get this error.
You didn't specify -flto in your linker command line. Add that and try again.
>
>
--
One dashboard for servers and application
You didn't specify -flto in your linker command line. Add that and try again.
https://gcc.gnu.org/wiki/LinkTimeOptimization
--
Best regards,
lh_mouse
2015-05-21
-
发件人:Etienne Sandré-Chardon
The gcc version is in the title (4.9.1), it is an official MinGW-w64
posix-seh build
The command line is like this (I have stripped several -D and -I command
line options, otherwise it is intact)
*Compiler:*
g++ -c -pipe -fno-keep-inline-dllexport -O3 -Wformat-nonliteral
-std=gnu++11 -mfpmath=sse
What g++ version were you using? What were the exact command lines you used to
build your program?
--
Best regards,
lh_mouse
2015-05-21
-
发件人:Etienne Sandré-Chardonnal
发送日期:2015-05-21 14:5