#7 Input line is too long for C30 C Linker

open
nobody
None
5
2010-08-05
2010-08-05
Quang Huy
No

Because my project includes many of files, located in several folders. So, C30 Compiler generated *.o files in subfolders (not at the project's dir). This cause when Linker operates, the parameters must include the subpath of *.o files. This cause the error: "input line is too long".

In MPLAB IDE, all *.o files were generated at project's dir. So the parameters are just filenames only.
Would you mind adding another options for solving this problem?

This is the message from Eclipse console:

"mingw32-make all
'Building target: GPS.elf'
'Invoking: PIC C30 C Linker'
"pic30-gcc -Wl,-Map,GPS.map -omf=elf -mcpu=33FJ128GP706 --defsym=__MPLAB_DEBUG=1 -o"GPS.elf" ./TnD\ Stack/Stack/tnd_24lc512.o ./TnD\ Stack/Stack/tnd_8583.o ./TnD\ Stack/Stack/tnd_adc.o ./TnD\ Stack/Stack/tnd_delay.o ./TnD\ Stack/Stack/tnd_ecan.o ./TnD\ Stack/Stack/tnd_glcd.o ./TnD\ Stack/Stack/tnd_lcd.o ./TnD\ Stack/Stack/tnd_led.o ./TnD\ Stack/Stack/tnd_math.o ./TnD\ Stack/Stack/tnd_modbus_can.o ./TnD\ Stack/Stack/tnd_string.o ./TnD\ Stack/Stack/tnd_timer1.o ./TnD\ Stack/Stack/tnd_uart.o ./TnD\ Stack/Stack/MDDFS/FSIO.o ./TnD\ Stack/Stack/MDDFS/SD-SPI.o ./GPS\ Tracker\ v2.0/src/GPS\ Tracker\ v2.0.o ./GPS\ Tracker\ v2.0/src/funcs.o ./GPS\ Tracker\ v2.0/src/gprs.o ./GPS\ Tracker\ v2.0/src/gps.o ./GPS\ Tracker\ v2.0/src/init.o ./GPS\ Tracker\ v2.0/src/Modbus\ CAN/MCAppFuncs.o ./GPS\ Tracker\ v2.0/src/Modbus\ CAN/MCFifoSys.o ./GPS\ Tracker\ v2.0/src/Modbus\ CAN/MCMain.o "
The input line is too long.
mingw32-make: *** [GPS.elf] Error 1"

Discussion


Log in to post a comment.