Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Дмитро on May 22, 2017, 08:07:48 pm

Title: .exe||No such file or directory
Post by: Дмитро on May 22, 2017, 08:07:48 pm
 :'(

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




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


Title: Re: .exe||No such file or directory
Post by: stahta01 on May 22, 2017, 10:09:50 pm
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

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

Edit: Things that I have no idea if they are needed or not,
Code
-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.
Title: Re: .exe||No such file or directory
Post by: Дмитро on May 22, 2017, 10:18:05 pm
 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);
Title: Re: .exe||No such file or directory
Post by: stahta01 on May 22, 2017, 10:22:49 pm
You really should have stayed on the other site. https://cboard.cprogramming.com/cplusplus-programming/173157-exe||no-such-file-directory|-post1268615.html#post1268615 (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 (http://forums.codeblocks.org/index.php/topic,9996.0.html)

This is a English only site.

Tim S.
Title: Re: .exe||No such file or directory
Post by: Дмитро on May 22, 2017, 10:28:46 pm
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.
Title: Re: .exe||No such file or directory
Post by: stahta01 on May 22, 2017, 10:39:58 pm
The problem is likely something wrong with your Compiler or some setting you added to Code::Blocks!

You can try to work on fixing all the CB Settings issues here; but, I will guess that once that is done you will need to go back to the other site to figure out the compiler issue.

Tim S.
Title: Re: .exe||No such file or directory
Post by: BlueHazzard on May 22, 2017, 10:44:20 pm
i do not fully understand if this problem is solved or not. But if not, can you post your project file? Or open your project file with notepad and paste it here: https://pastebin.com/ and post a link here?

Title: Re: .exe||No such file or directory
Post by: stahta01 on May 22, 2017, 11:11:01 pm
@BlueHazzard: The CB Project file is likely inside HeloWorld.zip attached above.

Tim S.
Title: Re: .exe||No such file or directory
Post by: BlueHazzard on May 22, 2017, 11:22:22 pm
@BlueHazzard: The CB Project file is likely inside HeloWorld.zip attached above.

Tim S.
Thank you.. I missed that somehow...

@Дмитро:
i looked in your project and you are using a non ANSI character for the output file name. What appears to be a latin "H" is something other : "Н"
Try to use only ASCII (latin) characters. If i try to compile your project on my pc i get a windows crash. If you use the latin "H" it does not compile because it doe snot find "<mingw.mutex.h>" but this is a other problem...