News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Code Blocks on OS X 10.9

Started by rylanemmanuel, September 09, 2014, 03:57:45 AM

Previous topic - Next topic

rylanemmanuel

Hey, I've been trying to get code blocks to work with mac all day, I installed the binary release, along with Xcode, and also I installed command line tools from apple developer and i did the install xcode-select.

here's my build log

-------------- Build: Debug in test (compiler: GNU GCC Compiler)---------------

g++  -o bin/Debug/test obj/Debug/main.o   
Undefined symbols for architecture x86_64:
  "_end", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


and here's Code::Blocks
Scanning for lexers in /Applications/CodeBlocks.app/Contents/Resources/share/codeblocks/lexers/...
Found 46 lexers
Loading lexer_A68k
Loading lexer_ada
Loading lexer_angelscript
Loading lexer_bash
Loading lexer_batch
Loading lexer_bibtex
Loading lexer_caml
Loading lexer_cg
Loading lexer_cmake
Loading lexer_cpp
Loading lexer_css
Loading lexer_d
Loading lexer_diff
Loading lexer_f77
Loading lexer_fortran
Loading lexer_glsl
Loading lexer_gm
Loading lexer_haskell
Loading lexer_hitasm
Loading lexer_html
Loading lexer_java
Loading lexer_latex
Loading lexer_lisp
Loading lexer_lua
Loading lexer_make
Loading lexer_masm
Loading lexer_matlab
Loading lexer_nsis
Loading lexer_objc
Loading lexer_OgreCompositor
Loading lexer_OgreMaterial
Loading lexer_pascal
Loading lexer_perl
Loading lexer_postscript
Loading lexer_prg
Loading lexer_properties
Loading lexer_python
Loading lexer_rc
Loading lexer_ruby
Loading lexer_smalltalk
Loading lexer_sql
Loading lexer_squirrel
Loading lexer_vbscript
Loading lexer_verilog
Loading lexer_vhdl
Loading lexer_xml
Configured 0 tools
Scanning for plugins in /Users/rylanemmanuel/Library/Application Support/codeblocks/share/codeblocks/plugins
Loaded 0 plugins
Scanning for plugins in /Applications/CodeBlocks.app/Contents/Resources/share/codeblocks/plugins
Tools Plus Plugin: Registering shell type Piped Process Control
Loaded 51 plugins
Loading:
Abbreviations
AStylePlugin
Autosave
AutoVersioning
BrowseTracker
BYOGames
CB_Koders
Cccc
ClassWizard
CodeCompletion
CodeSnippets
CodeStat
Compiler
copystrings
CppCheck
Cscope
Debugger
FilesExtensionHandler
DoxyBlocks
cbDragScroll
EditorConfig
EditorTweaks
EnvVars
HeaderFixup
HelpPlugin
HexEditor
IncrementalSearch
cbKeyBinder
lib_finder
MouseSap
OccurrencesHighlighting
OpenFilesList
Profiler
ProjectsImporter
RegExTestbed
ReopenEditor
ScriptedWizard
SmartIndentCpp
SmartIndentFortran
SmartIndentHDL
SmartIndentLua
SmartIndentPascal
SmartIndentPython
SmartIndentXML
SymTab
ToDoList
ToolsPlus
Valgrind
wxSmith
wxSmithMime
wxSmithAui
wxSmithContribItems
Running startup script
Script plugin registered: Find Broken Files plugin
Script/function 'edit_startup_script.script' registered under menu '&Settings/-Edit startup script'
Opening /Users/rylanemmanuel/Documents/Code/test/test.cbp
Done.
NativeParser::CreateParser(): Finish creating a new parser for project 'test'
NativeParser::OnParserEnd(): Project 'test' parsing stage done!
NativeParser::CreateParser(): Finish creating a new parser for project 'test'
NativeParser::OnParserEnd(): Project 'test' parsing stage done!

Jenna

It looks like Code::Blocks works correctly, but you get issues when compiling a program.

In this case it's not a C::B issue, but a setup/compiler issue abd does not really belong in this forum/website.

Try to make your compiler work on the commanline and then make sure everything is setup correctly in C::B /especially "Settings -> Compiler -> [your compiler] -> Toolchain executables".
If you know what you need, but don't know where to configure it, feel free to ask here.

eranif

You should set up your toolchain to work with clang.
It's not recommended using g++ on OSX