News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

.exe||No such file or directory

Started by Дмитро, May 22, 2017, 08:07:48 PM

Previous topic - Next topic

Дмитро

 :'(

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




stahta01

#1
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Дмитро

#2
 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

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Дмитро

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.

stahta01

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

BlueHazzard

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?


stahta01

#7
@BlueHazzard: The CB Project file is likely inside HeloWorld.zip attached above.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

BlueHazzard

Quote from: stahta01 on May 22, 2017, 11:11:01 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...