Eclipse Mingw C++ Cannot Find -Lpthread

Eclipse Can't Find MinGW/Can't setup C++ on Eclipse

You need to tell Eclipse where to gcc.exe and g++.exe.
In your case I would expect that to be C:\MinGw\mingw32\bin or C:\MinGw\bin.

If there's no gcc.exe and g++.exe there, it would appear your MinGW setup is broken.

Note that plain MinGW is a not very well maintained or up to date. I would recommend switching to MinGW-w64, which exists for both Windows 32-bit and 64-bit. A standalone build for Windows of recent MinGW-w64 can be downloaded from https://winlibs.com/. Just extract the file (no installer needed) and point to the mingw32\bin or mingw64\bin folder to find the compiler toolchain.

Mingw and Eclipse unable to find library - 2

I think I found the solution, thanks to the answer posted in this Link. So basically to summarize the solution, I had to remove the 'lib' prefix, the '.a' suffix and the library path when I specified the libraries (-l parameters). The library path has to be specified in the -L parameter . This resolved the above problem but led to another hurdle by Mingw:

libopusfile.dll.a: could not read symbols: Archive has no index; run ranlib to add one.

I executed the 'ranlib' command in the command prompt

cmd_path> ranlib libopusfile.dll.a 

, as suggested by the compiler, and this solved all my issues!

I cannot get Eclipse MinGW and Sqlite to Work Together for a C program

The amalgamation is supposed to be compiled together with your other source files. Just add the .c file to your project, as if it were one of your own source files.



Related Topics



Leave a reply



Submit