Code::Blocks Forums

User forums => Help => Topic started by: verxintRising on December 15, 2009, 09:18:54 am

Title: Code::Blocks gives errors on code that compiles on another machine
Post by: verxintRising on December 15, 2009, 09:18:54 am
I started using Code::Blocks a while ago and it worked great, until I tried file linking. For some reason, it keeps giving me "multiple definitions" errors for all of my functions that aren't in the same .cpp file as int main(). I went through my code several times, and not seeing anything wrong, I sent it to my friend to see if he could help. Turns out the exact same code will compile and run on his machine. I tried uninstalling and reinstalling Code::Blocks, as well as installing later version of MiniGW. So far, nothing has worked. Is there anything else I can do? Can I at least get pointed in the right direction for the problem.

Also, the machine I'm using is running Windows XP, if that's of any concern.

Anyways, thanks.
Title: Re: Code::Blocks gives errors on code that compiles on another machine
Post by: oBFusCATed on December 15, 2009, 09:41:37 am
First, C::B is an IDE, not a compiler!

The thing you could do is: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
and understand what every command emitted by C::B is doing.
Title: Re: Code::Blocks gives errors on code that compiles on another machine
Post by: MortenMacFly on December 15, 2009, 10:07:21 am
Topic not related to Code::Blocks thus violating our forum rules.

Topic locked.