User forums > Using Code::Blocks
build of static lib and 3rd party sources binaries path
ope:
Hi,
what are the switches (does exists some?) to prevent from the following problem:
This is the Project File, which builds a static lib from 3rd party sources:
--- Code: ---<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
...
<Target title="Release">
<Option output="librtw.a" prefix_auto="0" extension_auto="0" />
<Option object_output="build\release" />
<Option type="2" />
...
<Unit filename="C:\Programme\MATLAB\R2007a\rtw\c\libsrc\rt_backsubcc_dbl.c"><Option compilerVar="CC" /></Unit>
<Unit filename="C:\Programme\MATLAB\R2007a\rtw\c\libsrc\rt_backsubcc_sgl.c"><Option compilerVar="CC" /></Unit>
...
--- End code ---
On build I get the error request dialog:
Can't build object output directory \\build\debug\C\Programme\MATLAB\R2007a\rtw\c\libsrc
The object should go into build\debug directory and not on the full path of the source!
Thanks,
Olaf
stahta01:
See the Project -> Properties menu
Tab "Build Targets"
Select correct target
See what in box "output file name"
Tim S
ope:
you mean this?
Thanks,
Olaf
stahta01:
Yes that is the correct place.
Note, I have .objs for "Objects output dir" this is for temp file, not the file output.
Try "output file name" with "build\debug\librtw.a"
Tim S
ope:
Thanks, it seems to be a bug in C::B!
Here the error again:
Interesting gcc's Messages about output path , source and objects are on different (window) drives:
On the same driver I get this
Interesting it does compile, well, but the object path is stripped correctly. Isn't this a bug?
Thanks,
Olaf
Navigation
[0] Message Index
[#] Next page
Go to full version