Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New MinGW gcc doesn't do anything

Tags:

c++

c

mingw

I'm trying to compile a simple helloworld program with MinGW on Windows and nothing happens. No output, no executable, nothing. I've just installed the latest MinGW with their mingw-get-inst-20120421.exe installer. When I use an older version of MinGW that came with Code::Blocks, I am able to compile the program. I'm out of ideas and my googling has been in vain. C:\MinGW\bin is on my path and I'm using MSYS.

Command line parameters in MSYS:

gcc helloworld.c -o helloworld
like image 298
Jake Avatar asked Nov 13 '22 06:11

Jake


1 Answers

Execute the console from the Start menu, Start->MingW->MinGW Shell or from filesystem:

C:\MinGW\msys\1.0\msys.bat

Execute gcc in this shell.

Otherwise you will have to add the minGW/bin directory to your PATH environment variable.

like image 151
Jason Huntley Avatar answered Dec 21 '22 07:12

Jason Huntley