:'(
Please help me figure it out. I'm probably dumbing somewhere or something I do not understand. A very strange mistake,
.exe || No such file or directory |. Spaces or omissions in the roads, I do not seem to see. Completely I am lost what is it?
#include <mingw.mutex.h>
#include <mingw.thread.h>
#include <iostream>
#include <thread>
void hello()
{
std::cout<<"Hello Concurrent World\n";
}
int main()
{
std::thread t(hello);
t.join();
}
-------------- Clean: Debug in Н (compiler: GNU GCC Compiler)---------------
Cleaned "Н - Debug"
-------------- Build: Debug in Н (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -g -std=c++0x -g -fpermissive -DGLEW_STATIC -DSFML_STATIC -DUNICODE -IE:\GCC4.7MinGW(DW2)-32-bit\SFML-2.0\include -IE:\GLUT3.7beta\glut-3.7\include -IE:\directx-devel\include -IE:\BOOST\boost_1_60_0 -ID:\M\M -c D:\Parallel\HeloWorld\H1.cpp -o obj\Debug\H1.o
mingw32-g++.exe -LE:\GCC4.7MinGW(DW2)-32-bit\SFML-2.0\lib -LE:\GLUT3.7beta\glut-3.7\lib -LE:\directx-devel\lib -o bin\Debug\Н.exe obj\Debug\H1.o -static-libgcc -static-libstdc++ -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lsfml-network-s -lws2_32 -lgdi32 -lOpenGL32 -lWinMM
mingw32-g++.exe: error: .exe: No such file or directory
Process terminated with status 1 (0 minute(s), 4 second(s))
1 error(s), 0 warning(s) (0 minute(s), 4 second(s))
Please stop including things NOT needed to Compile the current project.
Compiler things that are NOT needed
-DGLEW_STATIC
-DSFML_STATIC
-IE:\GCC4.7MinGW(DW2)-32-bit\SFML-2.0\include
-IE:\GLUT3.7beta\glut-3.7\include
-IE:\directx-devel\include
-IE:\BOOST\boost_1_60_0
-ID:\M\M
Linker things that are NOT needed
-LE:\GCC4.7MinGW(DW2)-32-bit\SFML-2.0\lib
-LE:\GLUT3.7beta\glut-3.7\lib
-LE:\directx-devel\lib
-lsfml-graphics-s
-lsfml-window-s
-lsfml-system-s
-lsfml-network-s
-lws2_32
-lgdi32
-lOpenGL32
-lWinMM
Edit: Things that I have no idea if they are needed or not,
-static-libgcc
-static-libstdc++
Likely you did something wrong in the Compiler Global settings.
Like I said on the other site, I think you have an bad cbp file.
Did you create a blank CB project file and then add the C++ source file to it?
Tim S.