Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » strange MinGw return
strange MinGw return [message #55391] Thu, 05 November 2020 20:08 Go to next message
Leander is currently offline  Leander
Messages: 8
Registered: January 2019
Promising Member
Hello together.

I am trying several console projects currently (MinGW at Win 10/32), all with the same compiler return, as soon it is error free:
mingw32-c++.exe: error: CreateProcess: No such file or directory

I have no idea what I can do.
In case the exe was not created, it would say "a.exe not found" or alike.
I am grateful for any tip.

Martin
Re: strange MinGw return [message #55393 is a reply to message #55391] Fri, 06 November 2020 09:38 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3233
Registered: August 2008
Senior Veteran
Hi Leander

Could you upload a simple sample case?


Best regards
IƱaki
Re: strange MinGw return [message #55409 is a reply to message #55391] Sun, 08 November 2020 17:09 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1098
Registered: December 2006
Senior Contributor
Leander wrote on Thu, 05 November 2020 14:08

I have no idea what I can do.

I had a similar problem when I tried to run an app compiled on Ubuntu on Alpine linux, which is not using libc.
An app was unable to load dynamic loader (ld.so).
The error message is completely misleading.


Regards,
Novo
Re: strange MinGw return [message #55418 is a reply to message #55409] Mon, 09 November 2020 20:06 Go to previous messageGo to next message
Leander is currently offline  Leander
Messages: 8
Registered: January 2019
Promising Member
Hello everyone

Cannot upload the others as they are all using 2 packs of my lib, but tried the following with std only:

// main.cpp
#include <iostream> 	// cin, cout
#include <conio.h>	// getch(), _kbhit()
#include <stdlib.h>	// rand()
using namespace std;

int printNumbers()
{
	int num = rand() % 16;
	cout  << (int)num << ", ";
	return num;
}

int main()
{
	for (int i=16; i; i--)
		printNumbers();
	
	cout << "press any key to quit program.";
	return getch(); 
}

And suprise: did the same again.
Will search for another compiler Grin.
Thanx to all for your effort.

Martin
Re: strange MinGw return [message #55419 is a reply to message #55418] Mon, 09 November 2020 20:37 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1098
Registered: December 2006
Senior Contributor
Try to trace loading of the mingw compiler first. This is easy to do on Linux, but I'm not sure about Windows.
Try to open it with "dependency walker" first.


Regards,
Novo
Re: strange MinGw return [message #55436 is a reply to message #55409] Tue, 10 November 2020 18:25 Go to previous messageGo to next message
Leander is currently offline  Leander
Messages: 8
Registered: January 2019
Promising Member
@Novo: dunno how to achieve that. I am calling the MInGw with a batch, that is all I can do.

But BTW, I changed to another version of MinGw now from year 2016.
And now it runs - Razz

Martin
Re: strange MinGw return [message #55437 is a reply to message #55436] Tue, 10 November 2020 20:12 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1098
Registered: December 2006
Senior Contributor
Upp is using Clang for Windows with the last two releases.
MinGW is abandoned ...


Regards,
Novo
Re: strange MinGw return [message #55452 is a reply to message #55391] Thu, 12 November 2020 11:33 Go to previous message
Leander is currently offline  Leander
Messages: 8
Registered: January 2019
Promising Member
Hi Novo

thank you for the tip.
I am going to give it a try.

Leander
Previous Topic: FP exception vs NaN
Goto Forum:
  


Current Time: Sat Nov 28 23:31:49 CET 2020

Total time taken to generate the page: 0.01151 seconds