8 years, 6 months ago.

missing main.o

When i run make, it fails because main.o is missing. I've exported the project as GCC(arm embedded) for the LPC1768.

I've searched every folder but couldn't find the main.o file. I also tried to change the target but that didn't make a difference.

I don't know what main.o contains, maybe i should change the makefile?

here is my output

P:\mbed_blinky>make
arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb  -c -g -fno-common -fmessage-length=0
-Wall -Wextra -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-p
ointer -MMD -MP -DNDEBUG -Os -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -DARM_MATH_CM3
-DTARGET_CORTEX_M -DTARGET_LPC176X -DTARGET_NXP -DTARGET_MBED_LPC1768 -DMBED_BUI
LD_TIMESTAMP=1444135581.84 -DTARGET_LPC1768 -D__CORTEX_M3 -DTARGET_M3 -D__MBED__
=1  -std=gnu++98 -fno-rtti -I. -I./mbed -I./mbed/TARGET_LPC1768 -I./mbed/TARGET_
LPC1768/TOOLCHAIN_GCC_ARM -I./mbed/TARGET_LPC1768/TARGET_NXP -I./mbed/TARGET_LPC
1768/TARGET_NXP/TARGET_LPC176X -I./mbed/TARGET_LPC1768/TARGET_NXP/TARGET_LPC176X
/TARGET_MBED_LPC1768  -o main.o main.cpp
process_begin: CreateProcess(NULL, arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -c
-g -fno-common -fmessage-length=0 -Wall -Wextra -fno-exceptions -ffunction-secti
ons -fdata-sections -fomit-frame-pointer -MMD -MP -DNDEBUG -Os -DTOOLCHAIN_GCC_A
RM -DTOOLCHAIN_GCC -DARM_MATH_CM3 -DTARGET_CORTEX_M -DTARGET_LPC176X -DTARGET_NX
P -DTARGET_MBED_LPC1768 -DMBED_BUILD_TIMESTAMP=1444135581.84 -DTARGET_LPC1768 -D
__CORTEX_M3 -DTARGET_M3 -D__MBED__=1 -std=gnu++98 -fno-rtti -I. -I./mbed -I./mbe
d/TARGET_LPC1768 -I./mbed/TARGET_LPC1768/TOOLCHAIN_GCC_ARM -I./mbed/TARGET_LPC17
68/TARGET_NXP -I./mbed/TARGET_LPC1768/TARGET_NXP/TARGET_LPC176X -I./mbed/TARGET_
LPC1768/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768 -o main.o main.cpp, ...) f
ailed.
make (e=2): The system cannot find the file specified.
Makefile:57: recipe for target 'main.o' failed
make: *** [main.o] Error 2

Question relating to:

Be the first to answer this question.