Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cygwin 64 G++ -fuse-linker-plugin Error

I am receiving the following error when I try to compile a very basic C++ program.

$ g++ -fuse-linker-plugin test.cpp
g++: fatal error: -fuse-linker-plugin, but cyglto_plugin.dll not found
compilation terminated.

Code

int main() {
        return 0;
}

This is using G++ installed straight out of a fresh Cygwin installation.

If I search for the file there, it does exist and is located at:

/usr/libexec/gcc/x86_64-pc-cygwin/4.8.2/cyglto_plugin.dll

How do I make Cygwin 64 look at this correctly?

like image 842
Michael Avatar asked Oct 30 '13 02:10

Michael


1 Answers

I guess you only checked the gcc-g++ package at installation. Note that the version is 4.8.1-3 BUT on the next page you can see a lot of dependencies being installed, for example libgcc with version 4.8.2.

That mix of 4.8.1 and 4.8.2 seems to be the problem.

In the installer, copy all dependencies into an editor, search for 4.8.2 to find the problematic packages, go back in the installer and click those packages until 4.8.1-3 will be installed.

Double check you're not installing the latest version of those packages.

like image 198
xnor Avatar answered Sep 28 '22 10:09

xnor