I'm getting this error when I compile and link an application with the cl6x compiler. I can compile the application perfectly fine using codesourcery's gcc. Here's what happens when I try to build the code
/opt/TI/C6000CGT7.3.0B3/bin/cl6x -O2 -g -c -I/opt/TI/C6000CGT7.3.0B3/include --obj_extension=.o --abi=eabi -I./VAGenerated -I./LayoutSupport/Include -I./Drivers -I./Drivers/Audio -I../VisualDSP_213xx/Include -I../LinearAcoustic_Modules/Include -I/home/sharkllama/Projects/BolomSummer2011/Linux/Standard_Modules/StandardPack/Include -I/home/sharkllama/Projects/BolomSummer2011/Linux/Standard_Modules/ControlRatePack/Include -I/home/sharkllama/Projects/BolomSummer2011/Linux/LinearAcoustic_Modules/Include main.c -o main.o
>> WARNING: object file specified, but linking not enabled
[main.c]
"main.c", line 57: warning: incompatible redefinition of macro "MAX" (declared at line 54 of "Basic.h")
"main.c", line 58: warning: incompatible redefinition of macro "MIN" (declared at line 50 of "Basic.h")
"main.c", line 121: warning: variable "i" was declared but never referenced
"main.c", line 121: warning: variable "n" was declared but never referenced
"main.c", line 122: warning: variable "inputBuffer" was declared but never referenced
"main.c", line 122: warning: variable "outputBuffer" was declared but never referenced
"main.c", line 120: warning: function "main" was declared but never referenced
/opt/TI/C6000CGT7.3.0B3/bin/cl6x -O2 -g -c -I/opt/TI/C6000CGT7.3.0B3/include --obj_extension=.o --abi=eabi -I./VAGenerated -I./LayoutSupport/Include -I./Drivers -I./Drivers/Audio -I../VisualDSP_213xx/Include -I../LinearAcoustic_Modules/Include -I/home/sharkllama/Projects/BolomSummer2011/Linux/Standard_Modules/StandardPack/Include -I/home/sharkllama/Projects/BolomSummer2011/Linux/Standard_Modules/ControlRatePack/Include -I/home/sharkllama/Projects/BolomSummer2011/Linux/LinearAcoustic_Modules/Include preset.c -o preset.o
>> WARNING: object file specified, but linking not enabled
[preset.c]
"../VisualDSP_213xx/Include/builtins.h", line 3: warning: unrecognized #pragma
"preset.c", line 36: warning: unrecognized preprocessing directive
"preset.c", line 41: warning: unrecognized preprocessing directive
/opt/TI/C6000CGT7.3.0B3/bin/ar6x -r ./platformFileIO.lib ./Lib/*.o
==> building archive './platformFileIO.lib'
ranlib ./platformFileIO.a
Building target: platform_file_io
/opt/TI/C6000CGT7.3.0B3/bin/cl6x -g --run_linker --output_file=platform_file_io main.o DoControlCode.o preset.o --library=platformFileIO.lib --library=/opt/TI/C6000CGT7.3.0B3/lib/rts6600_elf.lib
<Linking>
warning: no suitable entry-point found; setting to 0
So, I'm at a loss on how to explain this. I've declared a static void main() function that is never referenced, and thus the linker does not have any idea where to being executing the code. Has anyone else encountered this issue?
Thanks,
-Brant