Relative path for C files?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

   

We keep all of our code in source control, and share code across different products. I'd like to include this code in-place (without copying or moving it) in a psoc creator project, but it seems that when I add an existing C file, it always adds it with an absolute path rather than a relative one. Is there a way to force it to use a relative path?

0 Likes
1 Solution
JobinT_31
Employee
Employee
50 solutions authored 25 solutions authored 10 solutions authored

Hello Jer,

Kindly let us know how you are adding the C files. The recommended way is to do it from workspace explorer.
#1 Right Click "Source Files"
#2 Add -> Existing Item
#3 Browse and select the C files

While doing this PSoC Creator will take a relative path to the C file. 

Thanks
Jobin

View solution in original post

0 Likes
1 Reply
JobinT_31
Employee
Employee
50 solutions authored 25 solutions authored 10 solutions authored

Hello Jer,

Kindly let us know how you are adding the C files. The recommended way is to do it from workspace explorer.
#1 Right Click "Source Files"
#2 Add -> Existing Item
#3 Browse and select the C files

While doing this PSoC Creator will take a relative path to the C file. 

Thanks
Jobin

0 Likes