this is the main of my c++ program:
void main(int argc, char** argv, Arguments& arguments)
the first arguments is a file and the rest are boolean values.
I was wondering what is the correct syntax for the command line to compile the program.
I tried:
gcc -o "argument1" "argument2" "argument3" prog.cpp
and
g++ -std=c++11 -o "argument1" "argument2" "argument3" prog.cpp
but I get this error:
linker command failed with exit code 1 (use -v to see invocation)
I am doubting that I am not passing the arguments correctly and therefore my program doesn't link to the input file (argument1) correctly.
thank you for correcting me.