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.

Unresolved symbol error while building in ccsv4

Other Parts Discussed in Thread: CCSTUDIO

I am trying to merge cfgdemo.prj (C:\CCStudio_v3.3\ndk_2_0_0_0\packages\ti\ndk\example\network\cfgdemo\common) into main.prj (C:\Program Files\Texas Instruments\edma3_lld_01_11_00_03\examples\edma3_driver\evmOMAPl137\ccs3). Both of the above work fine separately. But when I merge them together  I get the following error:

undefined         first referenced                                                                                                 
  symbol               in file                                                                                                      
 ---------         ----------------                                                                                                 
 _IFIndexGetHandle C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/console.obj
 _IFMaxIndex       C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/contest.obj
 _pppoeFree        C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/console.obj
 _pppoeGetStatus   C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/console.obj
 _pppoeNew         C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/console.obj
 _pppoesFree       C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/console.obj
 _pppoesNew        C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/console.obj

error: unresolved symbols remain
error: errors encountered during linking; "C:/Program Files/Texas
   Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Deb
   ug/main.out" not built

>> Compilation failure
gmake: *** [C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/main.out] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project main

I have tried out the following:

1. Right click on project
Select "Build Properties"
Under the "Tool Settings" tab, select "File Search Path"
Look for the box labeled "Include library file or command file as input" and click the icon with a green plus sign
Add the library, "stack.lib"

2.Mannualy included stack.lib by right clicking on project, "Add Files" gave the path of stack.lib (C:\packages\ti\ndk\lib\C64plus\stack.lib)

3.Checked the makefile. It had the library included

"ORDERED_OBJS += \
$(GEN_CMDS_QUOTED) \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/ping_pong.cmd" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/qdma_test.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/qdma_link_test.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/oobsrv.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/nullsrv.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/maincfg_c.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/maincfg.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/main.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/evminit.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/echosrv.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/dma_test.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/dma_poll_test.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/dma_ping_pong_test.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/dma_misc_test.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/dma_link_test.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/dma_chain_test.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/datasrv.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/convlan.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/contftp.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/contest.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/constat.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/console.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/consock.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/conroute.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/conping.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/conlli.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/conipv6.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/conipaddr.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/conecho.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/condns.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/conacct.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/common.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/cgiparse.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/usermsg.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/tibug.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/default.obj" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/Debug/config.obj" \
-l"edma3_drv_bios_c674.lib" \
-l"edma3_drv_bios_sample.lib" \
-l"edma3_rm_bios.lib" \
-l"C:\CCStudio_v3.3\ndk_2_0_0_0\packages\ti\ndk\lib\C64plus\stack.lib" \
"../evmc6747bsl.lib" \
"../hal_eth_c6747.lib" \
"../hal_ser_stub.lib" \
"../hal_timer_bios.lib" \
"../hal_userled_stub.lib" \
"C:/Program Files/Texas Instruments/edma3_lld_01_11_00_03/examples/edma3_driver/evmOMAPl137/ccs3/main.cmd" \
"../miniPrintf.lib" \
"../netctrl.lib" \
"../nettool.lib" \
"../os.lib" \
"../stack.lib" \

-include ../makefile.init"

How to get rid of the errors? I have attached my project herewith. 8787.ccs3.zip.  Help please.

  • I have tried out the following:

     

    1. Right click on project

    Select "Build Properties"

    Under the "Tool Settings" tab, select "File Search Path"

    Look for the box labeled "Include library file or command file as input" and click the icon with a green plus sign

    Add the library, "stack.lib"

     

    2.Mannualy included stack.lib by right clicking on project, "Add Files" gave the path of stack.lib (C:\packages\ti\ndk\lib\C64plus\stack.lib)

     

    3. checked the makefile and verified that it had the library, stack.lib included in it (make file is listed in previous post)

    But the libraries included are not shared- they are static. does it matter?

  • I figured out the solution.

    Right click on project/build properties/ c6000 compiler/predefined symbols, copy and paste the symbols that were defined in the reference project(under build properties/c6000 compiler/predefined symbols).