News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

using code blocks in ubuntu~ "undefined reference to"

Started by akjake616, January 25, 2014, 06:32:12 AM

Previous topic - Next topic

akjake616

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@@

MortenMacFly

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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]