This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

如何在ipclite例程的基础上建立新的C文件



TI的工程师你们好

       是这样的,我能在Linux编译ipclite的例程。现在我想拓展例程,新建了test.c和test.h(里面是一个简单的test函数),并在main_dsp.c中调用test函数。但是我无论把这两个文件放在哪里编译都通过不了——例如放在examples里面和main_arm.c以及main_dsp.c一起;或者放在ipclite里面和ipc.c及ipc.h一起。

        编译报错信息如下:

<Linking>

undefined first referenced
symbol in file
--------- ----------------
test Debug/main_dsp.obj

error: unresolved symbols remain
error: errors encountered during linking; "Debug/modem.out" not built

>> Compilation failure
makefile:70: recipe for target 'bin' failed
make[1]: *** [bin] Error 1
make[1]: Leaving directory '/mnt/hgfs/UbuntuShared/oMAPL138_StarterWare/build/c674x/cgt/omapl138/evmOMAPL138/modem'
makefile:54: recipe for target 'debug' failed
make: *** [debug] Error 2

         我想知道如何才能在ipclite例程的基础上增加新的C文件呢,万分感谢!