I`m currently trieing to compile my kernel under Ubuntu, but I have some problems with my C++ compiler. It always tries to integrate the libstdc++, and I get undefined reference to... error from the linker.
I tried to find a command line option to exclude the standard library, but I could neither find one in g++`s help nor with Google.
Is here anyone who knows hoe to compile a file with c++ without the C++ standard library?
g++ without std lib?
-nostdlib will stop libstdc++ from being linked.
It works on my ubuntu system.
My flags:
Remember that you must set these as CXXFLAGS, not CFLAGS. That could be your problem.
JamesM
It works on my ubuntu system.
My flags:
Code: Select all
-I. -I./common/ -I./fs -I./memory/ -I./process -I./utilities/ \
-fno-builtin -fno-exceptions -fno-rtti -fno-stack-protector -m32 -nostartfiles \
-nostdlib -DKERNEL
JamesM