I've started moving my OS's shell out of the kernel and into it's own binary file. I chose pdclib (Public Domain C lib) as the standard C library for my OS, mainly because it is free from and POSIX requirements. Building it was super easy but when I tried linking with it I get this error:
Code: Select all
In file included from ../../pdclib/internals/_PDCLIB_int.h:23,
from ../../pdclib/includes/string.h:16,
from ./src/iobot.c:1:
../../pdclib/internals/_PDCLIB_aux.h:53:2: error: #error PDCLib might not be fully conforming to either C89 or C95 prior to v2.x.
Code: Select all
COMPILE_PARAMS=-O -Wall -Wextra -Werror -nostdinc -nostartfiles -fno-builtin -ffreestanding -fno-stack-protector
INCLUDE_PATHS=-I./inc -I../../pdclib/includes -I../../pdclib/internals
OBJ_PATH=./bin
SRC_PATH=./src
all :
#
# iobot
@cp -u ../../kernel/inc/syscall.h ./inc
@gcc $(COMPILE_PARAMS) $(INCLUDE_PATHS) -c -o $(OBJ_PATH)/iobot.o $(SRC_PATH)/iobot.c
@ar rcs $(OBJ_PATH)/libiobot.a $(OBJ_PATH)/iobot.o
Also, the pdclib site seems to be down so I can't go looking there for any documentation.