Author Topic: .exe||No such file or directory  (Read 518 times)

Offline Дмитро

  • Multiple posting newcomer
  • *
  • Posts: 69
.exe||No such file or directory
« 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: [Select]
#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))
 


« Last Edit: May 22, 2017, 08:11:19 pm by Дмитро »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 5943
    • My Best Post
Re: .exe||No such file or directory
« Reply #1 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: [Select]
-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: [Select]
-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: [Select]
-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.
« Last Edit: May 22, 2017, 10:28:57 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Дмитро

  • Multiple posting newcomer
  • *
  • Posts: 69
Re: .exe||No such file or directory
« Reply #2 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);
« Last Edit: May 22, 2017, 10:23:41 pm by Дмитро »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 5943
    • My Best Post
Re: .exe||No such file or directory
« Reply #3 on: May 22, 2017, 10:22:49 pm »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Дмитро

  • Multiple posting newcomer
  • *
  • Posts: 69
Re: .exe||No such file or directory
« Reply #4 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 5943
    • My Best Post
Re: .exe||No such file or directory
« Reply #5 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1519
Re: .exe||No such file or directory
« Reply #6 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?


Offline stahta01

  • Lives here!
  • ****
  • Posts: 5943
    • My Best Post
Re: .exe||No such file or directory
« Reply #7 on: May 22, 2017, 11:11:01 pm »
@BlueHazzard: The CB Project file is likely inside HeloWorld.zip attached above.

Tim S.
« Last Edit: May 22, 2017, 11:17:17 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1519
Re: .exe||No such file or directory
« Reply #8 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...