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.

TMS320F28035: IQ Math related error

Part Number: TMS320F28035
Other Parts Discussed in Thread: C2000WARE

Hi,

I'm facing this error, I've attached the linker filer still this error. Can you please help

remark: linking in "IQmath_coff.lib" in place of index library "IQmath.lib"

>> Compilation failure
makefile:151: recipe for target 'Example_2803xAdcSoc.out' failed

undefined first referenced
symbol in file
--------- ----------------
_main C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/lib/rts2800_ml.lib<args_main.c.obj>

  • If I execute the same code in a different folder, this error is seen

    Building target: "pwm_test.out"
    Invoking: C2000 Linker
    "C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi -z -m"pwm_test.map" --stack_size=0x300 --warn_sections -i"C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/lib" -i"C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="pwm_test_linkInfo.xml" --rom_model -o "pwm_test.out" "./DSP2803x_CodeStartBranch.obj" "./DSP2803x_DefaultIsr.obj" "./DSP2803x_EPwm.obj" "./DSP2803x_GlobalVariableDefs.obj" "./DSP2803x_PieCtrl.obj" "./DSP2803x_PieVect.obj" "./DSP2803x_SysCtrl.obj" "./DSP2803x_usDelay.obj" "./main.obj" "C:/ti/c2000/C2000Ware_4_02_00_00/device_support/f2803x/common/cmd/28035_RAM_lnk.cmd" "C:/ti/c2000/C2000Ware_4_02_00_00/device_support/f2803x/headers/cmd/DSP2803x_Headers_nonBIOS.cmd" -llibc.a -l"C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/lib/rts2800_ml.lib"
    <Linking>

    undefined first referenced
    symbol in file
    --------- ----------------
    _main C:\ti\ccs1210\ccs\tools\compiler\ti-cgt-c2000_22.6.0.LTS\lib\rts2800_ml.lib<args_main.c.obj>

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "pwm_test.out" not built

    >> Compilation failure
    makefile:151: recipe for target 'pwm_test.out' failed
    gmake[1]: *** [pwm_test.out] Error 1
    makefile:147: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****

  • Hello Puneeth,

    It seems like somewhere you are using calling/using "_main" but this is not declared. Is this something that exists in your code or is it referring to your "void main(void)" function?

    Best regards,

    Omer Amir

  • Hi Omer,

    Thanks for your reply.