Enthernet Code
Enthernet Code
DIIDevHeads IoT Integration Server
Created by Enthernet Code on 6/7/2024 in #middleware-and-os
When compiling my FreeRTOS, my functions in string.c conflict with the built-in function 'tolower'
Hey guys When compiling my FreeRTOS, my functions in string.c conflict with the built-in function 'tolower'. Can I use a CFLAGS to resolve this error, and how can i do it? Here's my code
makefile
all: my_rtos

my_rtos: main.o string.o
gcc -o my_rtos main.o string.o

main.o: main.c
gcc -c main.c

string.o: string.c
gcc -c -Dmy_tolower=custom_tolower string.c
makefile
all: my_rtos

my_rtos: main.o string.o
gcc -o my_rtos main.o string.o

main.o: main.c
gcc -c main.c

string.o: string.c
gcc -c -Dmy_tolower=custom_tolower string.c
@Middleware & OS
3 replies