Fresh install of Eclipse Version: 2022-09 (4.25.0)
Fresh install of msys2 (64 bit)
Running on Windows 10
Added PATH, and set include path in project settings.
Created new 'hello world' project.
Build project shows:
09:20:14 **** Build of configuration Debug for project test2 ****
make all
Building file: ../src/test2.cpp
Invoking: Cross G++ Compiler
g++ -I"C:\msys64\usr\lib\gcc\x86_64-pc-msys\11.3.0\include\c++" -IC:\msys64\mingw64\include -I"C:\msys64\usr\include" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test2.d" -MT"src/test2.o" -o "src/test2.o" "../src/test2.cpp"
make: *** [src/test2.o] Error -1073741502
"make all" terminated with exit code 2. Build might be incomplete.
09:20:15 Build Failed. 1 errors, 0 warnings. (took 1s.813ms)
In the 'problems' tab:
shows no issues but says 'Symbol std could not be resolved'
It works ok from a cmd prompt:
C:\Users\xxx\eclipse-workspace\test2\Debug>g++ -I"C:\msys64\usr\lib\gcc\x86_64-pc-msys\11.3.0\include\c++" -IC:\msys64\mingw64\include -I"C:\msys64\usr\include" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test2.d" -MT"src/test2.o" -o "src/test2.o" "../src/test2.cpp"
C:\Users\xxx\eclipse-workspace\test2\Debug>ls src
subdir.mk test2.d test2.o
I've had Eclipse working in the past but it was many years ago (Helios I think). I need a recent version of gcc so using a basic mingw install didn't work.
Any ideas how to get Eclipse to work with msys2?