I asked already a few questions in the general forums about compiling CodeBlocks from SVN for MacOS. After some initial trouble I found out that it is running ok when starting it as administrator, why it is that way I really don't know.
But thats not the main problem.
If I want to link a project which I have working fine in Win and Lin in OS X. One library out of a project in the workspace I wanted to link against an other one, buld before.
Lets name those projects a.dylib, b.dylib and executable.bin
First I build a then b which needs to be linked against a and then the executable against a and b.
I'm using an own build gcc3.4.6 which is installed in /opt for that purpose while it seems to behave the same way if I'm using the included 4.01.
It links fine if I set in the linker settings in link library for b
../../OutputDir/a.dylib
and for the executable
../../OutputDir/a.dylib
../../OutputDir/b.dylib
Maybe I got something wrong or don't understand it yet in OS X, but for this it links fine using g++, but when running it, I need to set DYLD_LIBRARY_PATH to ./ otherwise it looks for them in ../../OutputDir and doesnt start.
It also works if I don't use the specific output dir and place the libs to link again in the same path as the src, but still I need to link with ./a.dylib
Not very happy about this behavior I tried to add ../../OutputDir to linker search path, but whatever I tried, it seemed to ignore it, until I noticed, that if I add the library into the linker settings as "a" or "a.dylib" instead of "./a.dylib" it tries to use suddenly libtool instead of g++, why is that?
Also noticed that I can't set -Wl,-stack_size -Wl,1000000 it also tries to run it with libtool and fails with some obscure error:
/usr/bin/libtool: unknown option character `t' in: -stack_size
which is at least currently more of a problem for me since I can work around pretty easily around the first issue with the DYLD_LIBRARY_PATH.
I hope this is information enough, where can I adjust this behavior to prevent it from trying to use libtool?
Secondly, OS X version of Codeblocks seems to be kinda buggy yet, if it comes to some settings, the requirement to need to be administrator, some windows seem to jump away if I want to select something and the window size of some preferences windows are incredibly large which causes weird problems because usually I'm working from my notebook which doesn't allow me a screensize of bigger than 1280x800. The windows can't even be resized sometimes and some buttons like the advanced button in compiler options I can't select because they are just of the screen.
Is it assumed that everyone is using a >1600x1050 screen or a bug?
Also the handling of project settings is kinda messy, I need to activate a project first before I can change its build settings with right mouse, otherwise the settings set....what? - no idea, at least not the build options for the project I click on.
Almost everything above works perfectly fine in my Linux version- so my question is, are there intentional changes especially for OS X to adjust to its different "usual behavior for Mac's", or a bug?
I personally would prefer one handling for all platforms, because the way its done in Linux is way more logical and clear and its kinda annoying to change the way how to work everytime I switch from Lin to OS X.