Problems Compiling my C++ Kernel

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
djnorthyy
Member
Member
Posts: 49
Joined: Mon Apr 09, 2007 10:50 am
Location: UK, Hants
Contact:

Problems Compiling my C++ Kernel

Post by djnorthyy »

Hi,

I am currently developing my own 32bit os in C++. I have run into trouble compiling the code. This is only a problem with the C++ code.

I am using DJGPP. The compiler I am using is GCC ( GXX, GPP ). When ever I try any of these commands (gcc, gxx, gpp) i get various errors!

GCC:
gcc.exe: Internal Error: <null> <program cc1plus>
GXX:
Same as above
GPP:
cc1puls.exe: error: djgpp.ver: No such file or directory <ENOENT>
The commands i am using are:
gpp -c Video.cpp -nostdlib -fno-builtin -fno-rtti -fno-exceptions
Any help would be great.
Harry.
Reflect Desktop Operating System - ' You only remember the name of the OS when it crashes '
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

Post by Craze Frog »

Forget about djgpp and build a cross compiler as described in the wiki.
User avatar
astrocrep
Member
Member
Posts: 127
Joined: Sat Apr 21, 2007 7:21 pm

Post by astrocrep »

Yes must recommond the CYGWIN x-compiler...

The wiki makes it VERY easy.

-Rich
Mouse Pad - Coming in the distant future...
Kernel: Indigo Kernel - v0.0.1

Thanks to JamesM and BrokenThorn for there tutorials!
Post Reply