Trouble with MinGW gcc?

This is a discussion on Trouble with MinGW gcc? within the C Programming forums, part of the General Programming Boards category; Hi I just started using MinGW gcc because I want to start getting seriously in to programming and found out ...

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    1

    Trouble with MinGW gcc?

    Hi I just started using MinGW gcc because I want to start getting seriously in to programming and found out I'm going to need to get to know the command prompt. I set every thing like my friend said he's been using it but it didn't work.
    I typed into the command prompt:
    gcc first.c -o first
    It said
    no such file or directory
    no input files
    I do have the variable set up so that not the problem.
    I'm on vista please help!!!

  2. #2
    Registered User
    Join Date
    Dec 2008
    Posts
    104
    It is not how your friend says. Here, try this:
    Code:
    gcc -o first.exe first.c
    Next time, a search on google will solve your doubt.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. gcc - linking to cwd
    By mike_g in forum Tech Board
    Replies: 3
    Last Post: 08-15-2008, 03:38 PM
  2. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  3. Replies: 4
    Last Post: 09-02-2007, 08:47 PM
  4. Compiles on gcc 3.3 but not on gcc 4.0.3
    By cunnus88 in forum C++ Programming
    Replies: 5
    Last Post: 03-29-2007, 12:24 PM
  5. gcc
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 10-22-2003, 03:46 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21