LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-10-2013, 02:56 PM   #1
PoleStar
Member
 
Registered: Jul 2010
Posts: 231

Rep: Reputation: 2
MinGW compile issue on windows


Hello,

I installed MinGw on windows computer, and tried to test it with a "hello" code.
Compiler don't complain. But it also does not create any execute able file.

Here is the code and out put.

Code:
#include<stdio.h>

main(){

	printf("hello \n");


}
Out put:

Code:
PS C:\Users\\Desktop\test> gcc hello.c -o hello
PS C:\Users\\Desktop\test>
PS C:\Users\Desktop\test>
PS C:\Users\\Desktop\test> dir


    Directory: C:\Users\\Desktop\test


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---        10/10/2013   2:45 PM         62 hello.c


PS C:\Users\\Desktop\test>
 
Old 10-10-2013, 04:12 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
the desktop on windows is a link
and it really is not a real folder ( you do not even use the desktop folder using VisualStudio )
on win 7 it is a royal mess of "libraries"and redirects

build software for MinGW in the mingw/msys setup
C://Msys
C://Mingw
C://Mingw/bin
C://Mingw/lib
C://Mingw/src
C://Mingw/src/ProgramName
-- ie
C://Mingw/src/HelloWorld

( using --prefix=C://Mingw )

Last edited by John VV; 10-10-2013 at 04:15 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Swfdec issues on MinGW (Windows) c0d3d Programming 18 08-18-2012 05:55 PM
Compile to Native MinGW Zssfssz Programming 6 11-22-2011 10:01 PM
Fedora style MinGW Cross Compile Suite for Slackware? Gavin Harper Slackware 0 11-06-2010 10:03 AM
Attempting to Cross-compile SDL_image with mingw on a linux host Eupator Programming 6 02-03-2010 05:03 PM
MingW and Windows Libraries bobwall Programming 0 09-22-2004 03:25 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration