Ai-Thinker-Open / GPRS_C_SDK

Ai-Thinker A9/A9G GPRS (with GPS(A9G)) module C development SDK
https://ai-thinker-open.github.io/GPRS_C_SDK_DOC
MIT License
446 stars 232 forks source link

project not compiling , i am a new to this board and i don't know what to do , please help me to resolve this problem #545

Open Harshan2522 opened 7 months ago

Harshan2522 commented 7 months ago

[LDGEN] >>> cust.ld [LD] 1:C:/GPRS_C_SDK-master/build/project//project.elf 2:--oformat=elf32-littlemips 5:-just-symbols C:/GPRS_C_SDK-master/platform/chip/rom/8955/lib/mem_bridge_rom_CHIP.elf 6: C:/GPRS_C_SDK-master/build/project/cust.ld 7:--gc-sections -LC:/GPRS_C_SDK-master/build/project/init/lib -LC:/GPRS_C_SDK-master/build/project/libs/lib -LC:/GPRS_C_SDK-master/build/project/project/lib --start-group -linit_debug -llibs_debug -lproject_debug --end-group -LC:/GPRS_C_SDK-master/platform/lib/gcc/mips-elf/4.4.2 -lgcc --warn-common --error-unresolved-symbols 8:C:/GPRS_C_SDK-master/build/project//project.map end1 project.elf C:/GPRS_C_SDK-master/build/project/init/lib\libinit_debug.a(sdk_init.o): In function user_Main': C:\GPRS_C_SDK-master\init/src/sdk_init.c:30: undefined reference toproject_Main' value:0, p:ffffffff88240018, addend:0, symbol:0 C:\GPRS_C_SDK-master\init/src/sdk_init.c:30: relocation truncated to fit: R_MIPS16_26 against `project_Main' C:/GPRS_C_SDK-master/platform/compilation/cust_rules.mk:753: recipe for target 'C:/GPRS_C_SDK-master/build/project//project.elf' failed make[2]: [C:/GPRS_C_SDK-master/build/project//project.elf] Error 1 C:/GPRS_C_SDK-master/platform/compilation/cust_rules.mk:749: recipe for target 'C:/GPRS_C_SDK-master/build/project//project.srec' failed make[1]: [C:/GPRS_C_SDK-master/build/project//project.srec] Error 2 C:/GPRS_C_SDK-master/platform/compilation/cust_rules.mk:396: recipe for target 'lod' failed make: *** [lod] Error 2

rapper2000 commented 6 months ago

He seems not to find the function "project_Main". Your project always needs a function "_Main" to work.

Advice: if you can change the chip or have control over which chip to use, then use another one. this one is garbage.

rapper2000 commented 6 months ago

For example: if you have a file "myhttp.c" which you want ot compile, thean this file needs a function "myhttp_Main(void)" to be compiled properly.