User forums > Using Code::Blocks

.exe||No such file or directory

(1/2) > >>

Дмитро:
 :'(

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?


--- Code: ---#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();
}

--- End code ---




-------------- 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))
 


stahta01:
Please stop including things NOT needed to Compile the current project.

Compiler things that are NOT needed

--- Code: ----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

--- End code ---

Linker things that are NOT needed

--- Code: ----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

--- End code ---

Edit: Things that I have no idea if they are needed or not,

--- Code: ----static-libgcc
-static-libstdc++

--- End code ---

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.

Дмитро:
 Yes, I did it. I paresev all over again. I also successfully gathered tests.cpp which is in mingw-std-threads-master.

#include <mingw.mutex.h>  //mingw-std-threads-master
#include <mingw.thread.h>


I use because otherwise an error on the line std :: thread t (hello);

stahta01:
You really should have stayed on the other site. https://cboard.cprogramming.com/cplusplus-programming/173157-exe||no-such-file-directory|-post1268615.html#post1268615

The rules http://forums.codeblocks.org/index.php/topic,9996.0.html

This is a English only site.

Tim S.

Дмитро:
I thought that the topic really refers to the kodelok. And then I'll be able to understand and get an answer faster.

Then it's better to delete the topic here.

Navigation

[0] Message Index

[#] Next page

Go to full version