hi to all i am new to os dev but not to c++ i am having a problem in the kernel when i use #include<string> i get
kernel.o(.text+0x51):kernel.cpp: undefined reference to `__ZNSsC1Ev'
kernel.o(.text+0xe1):kernel.cpp: undefined reference to `__ZNSsD1Ev'
can any one help plz thx
linking to string error
Re: linking to string error
You can't include <string> as you don't have a standard library.
Re: linking to string error
ok what can i do to fix this error
Re: linking to string error
Don't #include <string> !amjad88 wrote:ok what can i do to fix this error
You can't use any standard library function in a kernel.
You could also use capital letters and punctuation, and lose the text-speak. That could help too.
Re: linking to string error
soo what is the soution how to use string ??
Re: linking to string error
You can't use string. Full stop. You have to write your own string handling functions.JamesM wrote: You can't use any standard library function in a kernel.
Re: linking to string error
can i plz have your email thx
Re: linking to string error
No, and as a special favour I'm going to lock this thread and give you an official warning.
thx
EDIT: I have now permbanned him for abusing me via PM.
thx
EDIT: I have now permbanned him for abusing me via PM.