Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using MinGW to compile C code, but error liblto_plugin-0.dll not found?

I'm using MinGW to compile C code. but when I give command "make", appear error : gcc.exe : fatal error: -fuse-linker-plugin, but liblto_plugin-0.dll not found compilation terminated. make: * [all] Error 1. Does anybody know how to solve it?

like image 613
sintakartika Avatar asked Nov 13 '22 03:11

sintakartika


1 Answers

though a long time since asked, I faced the same issue and I found a fine workaround when compiling.

gcc -fno-use-linker-plugin test.cpp -o test

like image 59
besabestin Avatar answered Apr 06 '23 20:04

besabestin