[warning] invalid argument

This is a discussion on [warning] invalid argument within the C Programming forums, part of the General Programming Boards category; I have a 200+ line program, that I am working on at the moment. It is attached, and, well formatted ...

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

    [warning] invalid argument

    I have a 200+ line program, that I am working on at the moment. It is attached, and, well formatted properly on my computer.

    Most important, is this code has to be ANSI compliant, so I run with the following compile options.

    gcc -ansi -Wall -pedantic -o

    Also I am using Dev C++ with mingc compiler.

    I keep getting "Invalid argument" "Id returned 1 exit status".

    What is the best way to debug this?

    (I realise I am new, and I did search for something similar to no avail)

    Thanks for your help guys.
    -Pat
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    it's not your code, its you compiler invocation. use gcc --help...it's most likely --strict-ansi or something like that
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    134
    It should be

    gcc -ansi -Wall -o xyz xyz.c
    where "xyz" is the filename of the executable file and xyz.c is my source file.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do you resolve this error?
    By -EquinoX- in forum C Programming
    Replies: 32
    Last Post: 11-05-2008, 03:35 PM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Nested loop frustration
    By caroundw5h in forum C Programming
    Replies: 14
    Last Post: 03-15-2004, 08:45 PM
  5. Flood of errors when include .h
    By erik2004 in forum C++ Programming
    Replies: 14
    Last Post: 12-07-2002, 06:37 AM

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