I want to create a project in CCS 4 that compiles to a library, and contains a BIOS 5 .tcf configuration. I then want to link this library against several different applications. Is there a recommended procedure for doing this? It seems like it should work but I am getting a seemingly endless succession of linker errors, more getting added every time I fix one.
What I've done so far:
- Create new project 'testlib', which generates a library. Add a BIOS 5 config to it and customize the config. Add testlib.h, which contains so far only #include "testlibcfg.h".
- Create new project 'testapp', which generates an Executable, and depends on testlib. Add main.c to it, which is only #include "testlib.h" and a hello world.
- Add the testlib.lib and testlibcfg.cmd to the "Include library file or command file as input" section of the application project's build properties.
The current set of errors is:
Severity and Description Path Resource Location Creation Time Id
errors encountered during linking; "testapp.out" not built testapp line 0 1276718825768 2332
symbol "__stack" redefined: first defined in "C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c6000\lib\rts6740.lib<boot.obj>"; redefined in "C:/Program Files/Texas Instruments/bios_5_41_03_17/packages/ti/bios/lib/bios.a674<boot.o674>" testapp line 0 1276718825768 2330
symbol "_c_int00" redefined: first defined in "C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c6000\lib\rts6740.lib<boot.obj>"; redefined in "C:/Program Files/Texas Instruments/bios_5_41_03_17/packages/ti/bios/lib/bios.a674<boot.o674>" testapp line 0 1276718825768 2331
symbol "_RTDX_Buffer_End" redefined: first defined in "C:/Program Files/Texas Instruments/bios_5_41_03_17/packages/ti/rtdx/lib/c6000/rtdx64xplus.lib<rtdx_ buf.o64P>"; redefined in "C:\\Documents and Settings\\jamesj\\My Documents\\ccs-workspace\\testlib\\Debug\\testlib.lib<testlibcfg.obj>" testapp line 0 1276718825768 2328
symbol "_RTDX_Buffer_Start" redefined: first defined in "C:/Program Files/Texas Instruments/bios_5_41_03_17/packages/ti/rtdx/lib/c6000/rtdx64xplus.lib<rtdx_ buf.o64P>"; redefined in "C:\\Documents and Settings\\jamesj\\My Documents\\ccs-workspace\\testlib\\Debug\\testlib.lib<testlibcfg.obj>" testapp line 0 1276718825768 2327
symbol "_RTDX_Buffer" redefined: first defined in "C:/Program Files/Texas Instruments/bios_5_41_03_17/packages/ti/rtdx/lib/c6000/rtdx64xplus.lib<rtdx_ buf.o64P>"; redefined in "C:\\Documents and Settings\\jamesj\\My Documents\\ccs-workspace\\testlib\\Debug\\testlib.lib<testlibcfg.obj>" testapp line 0 1276718825768 2329