Skip to content
Sign upLog in
← Back to Community

This won't compile - help

Profile icon
VaughanFraser

says i need ./main i don't know how to fix that

Answered by a5rocks [earned 5 cycles]
View Answer
Voters
Profile icon
VaughanFraser
Comments
hotnewtop
Profile icon
a5rocks

I think the error might be coming from the existing main file you have. Though, I have absolutely no experience with c++, so yeah.

tl;dr delete the file called main

Profile icon
hyperupcall

I don't seem to be having the same error as you do, but have you tried changing your names from main.cpp or main to something else? Maybe it's somehow conflicting with main(). :)

Profile icon
VaughanFraser

keeps saying i need ./main

Profile icon
VaughanFraser

it won't run