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();
...
}
}
Before I use Eclipse with others microcontrollers and I did not have same problem.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'
Thank you