Author Topic: Code::Blocks gives errors on code that compiles on another machine  (Read 3045 times)

Offline verxintRising

  • Single posting newcomer
  • *
  • Posts: 4
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks gives errors on code that compiles on another machine
« Reply #1 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Code::Blocks gives errors on code that compiles on another machine
« Reply #2 on: December 15, 2009, 10:07:21 am »
Topic not related to Code::Blocks thus violating our forum rules.

Topic locked.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ