User forums > Using Code::Blocks
Compiling on Mac OS X
Urxae:
--- Quote from: TheWizzard on September 01, 2005, 03:09:16 pm ---
--- Quote ---ld: Undefined symbols:
__ZN12CompilerSDCCC1Ev
--- End quote ---
CompilerSDCC is compiled by CompilerGCC isn't it? So why is it unable to find it?
--- End quote ---
Did it actually compile? Did it show up in the output? Maybe the makefile you used didn't compile compilerSDCC.cpp, it's a relatively new file to the project IIRC, so if the makefile's a bit out of date it may not be included.
TheWizzard:
--- Quote ---./run.sh
dyld: Library not loaded: devel/libcodeblocks.dylib
Referenced from: /Users/jonasoberschweiber/codeblocks/codeblocks/src/output/codeblocks.exe
Reason: image not found
./run.sh: line 5: 10904 Trace/BPT trap $APP_DIR/codeblocks.exe $@
--- End quote ---
It compiled! w00t! But that's what I get now. There are images in share/CodeBlocks and so on. The devel/libcodeblocks.dylib exists.
grv575:
well...run.sh is running output/codeblocks.exe
which wants to load devel/codeblocks.dylib
and output/devel/codeblocks.dylib doesn't exist of course. it should want to look for output/codeblocks.dylib but maybe some of those -Ldevel library paths hardcoded the libpath in the exe? this should really be tested more on linux (why -Ldevel isn't needed on windows to link the sdk libs I'm not sure, maybe it should be -L"." instead on linux, not sure).
just for kicks does it load if you copy devel to output? or modify run.sh to run the .exe in the devel directory instead of the output one?
edit:
actually, the run.sh may need to be modified for macos? does mac use LD_LIBRARY_PATH (like linux) or LIBPATH?
http://msgs.securepoint.com/cgi-bin/get/openssh-unix-dev-0507/9/1/1.html
TheWizzard:
Runs,
Well, sort of. Shows Splash and crashes.
--- Quote ---#./run.sh: line 5: 10926 Segmentation fault $APP_DIR/codeblocks.exe $@
--- End quote ---
grv575:
that's what xjluo got. if there's a codeblocks.rpt backtrace you can post that and if not maybe try
gdb run.sh (maybe needs to be gdb codeblocks.exe)
run
bt
which will give a backtrace.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version