Author Topic: using code blocks in ubuntu~ "undefined reference to"  (Read 3746 times)

akjake616

  • Guest
using code blocks in ubuntu~ "undefined reference to"
« on: January 25, 2014, 06:32:12 am »
Some files made by ubuntu's CB cannot be compiled by windows CB, vice versa. it always shows "undefined reference to". Can anyone tell me the reason? ???
Since I'm writing a project with my friend, he's using code blocks under windows 7, and i'm using code blocks under ubuntu. However, his files from win7 can't be compiled by my CB and either the project(.cbp file) created by my CB cannot be compiled by his CB in windows@@

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: AW: using code blocks in ubuntu~ "undefined reference to"
« Reply #1 on: January 25, 2014, 07:10:15 am »
Google for "undefined reference" to understand what it means. You have to ensure that you link against the right libs under both platforms. This is not a C::B issue.
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