I have a program that reads one image file, makes some changes on that image and then stores it.
The program runs like this:
./main file1.pgm file2.pgm
I'm using the -g
flag so I can use GDB.
Now when I try to run GDB like this
# gdb main file1.pgm file2.pgm
i'm getting this error:
Excess command line arguments ignored. (file2.pgm)
How can I solve this?
My main needs those two arguments.