hello friends
i finally started programmation at school, we use ubuntu, at home i installed eclipse with MinGW i tried simple helllo world and it works but when i start mutiple exercices under same same project i get a compiler errormultiple definition of 'main' in c i triedint main (){}
same problem i tried int main (void){}
same problem please someone help me.
chrisschristou
0
Posting Whiz
Recommended Answers
Jump to PostBecause you're writing all your code in one project, you're trying to combine all your code into a single program. You're only allowed one function named
main
in a single program. Because you wrote lots of functions namedmain
, you're breaking that rule.Separate project for each exercise.
All 3 Replies
Moschops
683
Practically a Master Poster
Featured Poster
aradicev
0
Newbie Poster
chrisschristou
0
Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.