Hello everyone,
I've been visiting this thread for a couple weeks now, and I love how this community acts with one another. I have a bit of a problem. I'm pretty much new to C. I'm around 90 pages into my C programming book. I've been using the IDE Microsoft Visual C++ 6.0 Professional. When I start a new project and make a new file everything works great. When I make a new c file where they would now be more than one it will give me an error when i build it saying
hello.obj error LNK2005: _main already defined in precedence.obj.
Error executing link.exe
Now I assume it is because both of these c programs have a main function which is why it won't build. I know my friend said he can do multiple c programs in one project. How do you accomplish that?
I'm on AIM as Krimit Got High if you know the answer or I'll check on here. Thanks everyone.



LinkBack URL
About LinkBacks


