I keep getting this error when using Cygwin GCC:
Build messages:
||=== Build: Debug in cygwin_ex (compiler: Cygwin GCC) ===|
||error: -fuse-linker-plugin, but cyglto_plugin.dll not found|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
Has anyone managed to solve this?
Build log:
Cleaned "cygwin_ex - Debug"
-------------- Build: Debug in cygwin_ex (compiler: Cygwin GCC)---------------
g++.exe -Wall -fexceptions -g -I../../../../cygwin64/lib/gcc/x86_64-pc-cygwin/6.4.0/include -c C:/Users/Lucas/Desktop/cygwin_ex/main.cpp -o obj/Debug/main.o
g++.exe -o bin/Debug/cygwin_ex.exe obj/Debug/main.o
g++: fatal error: -fuse-linker-plugin, but cyglto_plugin.dll not found
compilation terminated.
Process terminated with status 1 (0 minute(s), 1 second(s))
1 error(s), 0 warning(s) (0 minute(s), 1 second(s))
Cleaned "testcyg - Debug"
-------------- Build: Debug in testcyg (compiler: Cygwin GCC)---------------
g++.exe -Wall -fexceptions -g -c C:/Users/stahta01/devel/open_source_code/no_version_control/test/testcyg/main.cpp -o obj/Debug/main.o
g++.exe -o bin/Debug/testcyg.exe obj/Debug/main.o
Output file is bin\Debug\testcyg.exe with size 218.25 KB
Could not duplicate the problem:
Using Code::Blocks 17.12 under Windows 7 64 bit.
g++ (GCC) 7.3.0
Tim S.
Doing that generates:
Build log:
-------------- Clean: Debug in cygwin_ex (compiler: Cygwin GCC)---------------
Cleaned "cygwin_ex - Debug"
-------------- Build: Debug in cygwin_ex (compiler: Cygwin GCC)---------------
g++.exe -Wall -fexceptions -g -c C:/Users/Lucas/Desktop/cygwin_ex/main.cpp -o obj/Debug/main.o
g++.exe -o bin/Debug/cygwin_ex.exe obj/Debug/main.o
In file included from /usr/include/stdio.h:35:0,
from C:/Users/Lucas/Desktop/cygwin_ex/main.cpp:1:
/usr/include/sys/cdefs.h:45:10: fatal error: stddef.h: No such file or directory
#include <stddef.h>
^~~~~~~~~~
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Ok, that means it was corrupt/wrong files:
Cygwin 2.10.0:
Build log:
-------------- Clean: Debug in cygwin_ex (compiler: Cygwin GCC)---------------
Cleaned "cygwin_ex - Debug"
-------------- Build: Debug in cygwin_ex (compiler: Cygwin GCC)---------------
g++.exe -Wall -fexceptions -g -I../../../../cygwin64/usr/include/gsl -c C:/Users/Lucas/Desktop/cygwin_ex/main.cpp -o obj/Debug/main.o
g++.exe -o bin/Debug/cygwin_ex.exe obj/Debug/main.o -lgsl
Output file is bin\Debug\cygwin_ex.exe with size 163.73 KB
Process terminated with status 0 (0 minute(s), 1 second(s))
0 error(s), 0 warning(s) (0 minute(s), 1 second(s))