Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Dec 6, 2023 · 2 comments

Comments

@Harshan2522
Copy link

[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 to project_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
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants