Problem with xTime Composer settings

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
Papayaved
New User
Posts: 3
Joined: Tue May 22, 2018 7:39 am

Problem with xTime Composer settings

Post by Papayaved »

Hello, I have problem

If I have only one R_12.xc file with main function - the project good compiling.
But if I add in source folder 'src' other files test.xc and test.h

And add it to main file

R_12.xc

Code: Select all

...
#include "test.h"

int main() {
    ...
    par {
        test_func();
        ...
    }
}
Linker dont find my function:)
Compiling test.xc
cd .build && xcc -c @_iflag.rsp -g -report -O2 -mno-dual-issue -lquadflash -DDEBUG_PRINT_ENABLE=1 -DCONFIG=Default -Xcompiler-xc -analysis -Xcompiler-xc ../.build/pca.xml "../src/test.xc" -x none ".././board_oriondz_v2.xn" -o "../.build/src/test.xc.o"
Creating R_12.xe
cd .build && xcc -g -report -O2 -mno-dual-issue -lquadflash -DDEBUG_PRINT_ENABLE=1 @_obj.rsp "..\.\board_oriondz_v2.xn" -o "..\bin\\R_12.xe"
../src/R_12.xc: Error: Undefined reference to 'test_func'
Before I use Eclipse with others microcontrollers and I did not have same problem.

Thank you


robertxmos
XCore Addict
Posts: 169
Joined: Fri Oct 23, 2015 10:23 am

Post by robertxmos »

Could you upload the contents of `_obj.rsp`
(this is the list of all object files, added as a file to prevent the command line getting too long for windows!)

Could I also bother you to upload the paths of the source files, Makefile, etc.

Thank you.
robert
Post Reply