دوستان اون مشکل ها حل شد الان وقتی یه پروژه رو می خوام کمپایل کنم ارور می ده !
برنامه :
#include "AT91SAM7X256.h"
#include "delay.h"
int main(){
while(1){
delay_ms(100);
}
}
خطا !
08:19:26 **** Incremental Build of configuration Debug for project new ****
make all
Building file: ../main.c
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -g3 -std=gnu11 -MMD -MP -MF"main.d" -MT"main.o" -c -o "main.o" "../main.c"
Finished building: ../main.c
Building target: new.elf
Invoking: Cross ARM C Linker
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -g3 -Xlinker --gc-sections -Wl,-Map,"new.map" -o "new.elf" ./main.o
/usr/lib/gcc/arm-none-eabi/4.8.2/../../../arm-none-eabi/lib/armv7-m/libg.a(lib_a-exit.o): In function `exit':
/build/buildd/newlib-2.1.0/build/arm-none-eabi/armv7-m/newlib/libc/stdlib/../../../../../../newlib/libc/stdlib/exit.c:70: undefined reference to `_exit'
collect2: error: ld returned 1 exit status
make: *** [new.elf] Error 1