ld: fatal: symbol 'main' is multiply-defined:
(file /var/tmp//cceZjOcX.o type=FUNC; file /var/tmp//ccYgP5zV.o type=FUNC);
ld: fatal: symbol '_Z4menuv' is multiply-defined:
(file /var/tmp//cceZjOcX.o type=FUNC; file /var/tmp//ccYgP5zV.o type=FUNC);
ld: fatal: file processing errors. No output written to a.out
I have currently received this error and have working some time trying to resolve it. It usually occurs with #including files that aren't necessary but this time its not that.
Would I have to change my main's name? sine I have two mains within my directory. So two functions called "int main(){ }" are being called along with my displays "menu(){ }"?
I made a temp main to test two of my files, once I put the actual main in the directory and tested: g++ *.cc I came up with those errors. Straight up took out the temp main because it was the temp. And got the crazy looking mumbo jumbo above...