User forums > Using Code::Blocks

build of static lib and 3rd party sources binaries path

<< < (2/5) > >>

MortenMacFly:

--- Quote from: ope on August 31, 2007, 07:20:33 am ---Thanks, it seems to be a bug in C::B!

--- End quote ---
No, it seems to be a bug in your project setup, honestly. I tried to reproduce what you have said - it works perfectly. If you want further assistence please post a minimal project as an example. You can strip down the code but leave the project file etc. as it is.
With regards, Morten.

ope:
Thanks for your answer. The build dir (where the project file is) is on d:\


--- Code: ---<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Test" />
<Option pch_mode="2" />
<Option compiler="tricoregcc" />
<Build>
<Target title="default">
<Option output="default\libTest.a" prefix_auto="0" extension_auto="0" />
<Option working_dir="" />
<Option object_output="default" />
<Option type="2" />
<Option compiler="tricoregcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add option="-g" />
<Add option="-O2" />
<Add option="-fno-common" />
<Add option="-fno-short-enums" />
<Add option="-mcpu=tc1766" />
<Add directory="src" />
<Add directory="h" />
</Compiler>
<Linker>
<Add option="-Wl,--Map,map.txt" />
<Add option="-mcpu=tc1766" />
</Linker>
<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>
<Unit filename="C:\Programme\MATLAB\R2007a\rtw\c\libsrc\rt_backsubrc_dbl.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="C:\Programme\MATLAB\R2007a\rtw\c\libsrc\rt_backsubrc_sgl.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="C:\Programme\MATLAB\R2007a\rtw\c\libsrc\rt_backsubrr_dbl.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="C:\Programme\MATLAB\R2007a\rtw\c\libsrc\rt_backsubrr_sgl.c">
<Option compilerVar="CC" />
</Unit>
<Extensions>
<code_completion />
</Extensions>
</Project>
</CodeBlocks_project_file>

--- End code ---

The begin of the build log:

--- Code: ----------------- Build: default in Test ---------------
tricore-gcc.exe -Wall -g -O2 -fno-common -fno-short-enums -mcpu=tc1766 -g  -Isrc -Ih  -c C:\Programme\MATLAB\R2007a\rtw\c\libsrc\rt_backsubcc_sgl.c -o default\C:\Programme\MATLAB\R2007a\rtw\c\libsrc\rt_backsubcc_sgl.o

--- End code ---

Thanks,
Olaf

stahta01:
Olaf: There has been people who stated they had issues using MinGW GCC with code on a different drive.
I assume that this would be an MinGW issue and not an C::B issue.

Tim S

ope:

--- Quote ---Olaf: There has been people who stated they had issues using MinGW GCC with code on a different drive.
I assume that this would be an MinGW issue and not an C::B issue.

--- End quote ---

For this I added C::B's generated command line. The object path isn't correct for some reasons. Also of interest:


Anyway, this is the build from http://www.hightec-rt.com using with the TriCORE gcc.

Thanks,
Olaf

Biplab:
This bug has been fixed in revision 4036. Please download a latest nightly build. This is the reason we are unable to reproduce this.

Please Note: This bug has been fixed by specifying the full path of the source file in case the relative path creation fails. So in your case the objective files will be created inside C:\Programme\MATLAB\R2007a\rtw\c\libsrc\ folder.

If you don't like that then you'll need to copy the source files to the drive where your project file exists.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version