error

if you get an error that says ( multiple definition of `main'
first defined here
ld returned 1 exit status )
how to fix this? :(
Do you have more than one main() function?
Do you #include the file that contains the main() function?
no, i used int main() once.
Somewhere, in all the compiled binary objects being gathered together, you have more than one main. This may not be in your code. They may be in other code that has already been compiled. They may be in libraries.

You should look at the error messages. They will tell you where the repeated mains are.
no, i used int main() once.

"Used"? Can you give the source code?
Topic archived. No new replies allowed.