User forums > General (but related to Code::Blocks)

Projectfiles on other drives

(1/3) > >>

MadMeX:
Hello,

my setup is as follows. I have a development kit on drive c:\ and my project reside on a network share, say z:\ . I want to include a source file from the kit into my project, but everytime I try to include it, it is relative to the project folder. And when I try to build then, the linker complains about the filename. Can I include the file with an absolute path ? If I just copy the file to my other source files it works, but this is not nice.

Thanks in advance
MeX

thomas:
All my projects are on D:. I just added a file which is on C:, and this works just fine?

I can't tell about 1-2 year old versions of course, but r4660 (which I'm using as stable revision all day) has no such problems.

MadMeX:
Ok, i'm using r3466 from 1.jan.07. It is shipped with the development kit from jennic for zigbee-modules.
In the dev-kit codeblocks is preconfigured, so when the demo-apps are in the right place, everything works fine. There is one common file which is in the .cbp referenced like
  <Unit filename="..\..\..\..\SDK\Common\Source\AppQueueApi.c">
but this won't work, couse i'm not in the default dir. if i change it to
  <Unit filename="$(#jennicsdk)\Common\Source\AppQueueApi.c">
with $(#jennicsdk)=C:\Jennic\cygwin\jennic\SDK I get
ba-elf-ld: ..\JN5139_Build\Release\.objs\C:\Jennic\cygwin\jennic\SDK\Common\Source\AppQueueApi.o: No such file: No such file or directory

I hope this helps to understand my problem.
Thanks
MeX

Biplab:

--- Quote from: MadMeX on November 29, 2007, 06:35:35 pm ---Ok, i'm using r3466 from 1.jan.07. It is shipped with the development kit from jennic for zigbee-modules.

--- End quote ---

You are using a very old version of C:B. This bug has been fixed long ago and doesn't exist in newer nightlies. Please upgrade to a latest nightly.

MadMeX:
I upgraded to the latest build 4681.

The problem is still there.
I have a global variable jennicsdk with base C:\Jennic\cygwin\jennic\SDK

If I have an item like
<Unit filename="$(#jennicsdk)\Chip\Common\Source\Printf.c">
   <Option compilerVar="CC" />
</Unit>

I will get the error
ba-elf-ld: ..\JN5139_Build\Debug\.objs\C:\Jennic\cygwin\jennic\SDK\Chip\Common\Source\Printf.o: No such file: No such file or directory

If I change the unit path to
<Unit filename="C:\Jennic\cygwin\jennic\SDK\Chip\Common\Source\Printf.c">
   <Option compilerVar="CC" />
</Unit>
it works

i think the problem is somewhere in the expansion of the variable to the linker. The .o file is compiled and at \Debug\.objsC\Jennic\cygwin\jennic\SDK\Chip\Common\Source

Thanks
MeX

Navigation

[0] Message Index

[#] Next page

Go to full version