In fact in the first post you read the following:
So he is working under linux, its gcc produces ELF without any problem (and other format too). The problem may be different for people working under Winsux.I am using Mandrake Linux 10, G++ compiler
So he is working under linux, its gcc produces ELF without any problem (and other format too). The problem may be different for people working under Winsux.I am using Mandrake Linux 10, G++ compiler
First of all, calling people names is not going to help build a good discussion is it? Call it Windows, even if you have to retype it 10 times to get it right.ineo wrote:So he is working under linux, its gcc produces ELF without any problem (and other format too). The problem may be different for people working under Winsux.I am using Mandrake Linux 10, G++ compiler
Oh, there are many more issues than just ELF. He might want to support i386, while his compiler is set to target i686. He might accidentially include headers for libs that aren't there on his OS. He might want to use a later, or older compiler version. We might want to reproduce his errors on an identical setup without installing his flavor of Linux first.ineo wrote: So he is working under linux, its gcc produces ELF without any problem (and other format too). The problem may be different for people working under Winsux.
With the information given in the FAQ, it's as easy as compilation gets. Just copy, paste, execute...ineo wrote: I am not saying that it is better to work with a gcc "out of the box", but I say that saying to new OS devers to build a cross-compiler and so on to get started is a bit hard and not always necessary.
I've been doing OS development for several years without any special compiler since you may use switches that do most of the work (and linker scripts).
No offense taken, but he has problems with his setup...Sorry if you think I am flaming or trolling, I just thought it was the best advice to give to someone starting a c++ kernel: keep concentrated on the kernel as long as you don't need to go further with the compiling tools.
using nasm for?Solar wrote: All that being said, is there someone who *did* build a cross-compiler as advertised, and using NASM instead of GNU as? I'd like to add info on the correct NASM switches to the FAQ...
At the moment I just compile my assembly files seperate with nasm, then compile the C code and link.Solar wrote: All that being said, is there someone who *did* build a cross-compiler as advertised, and using NASM instead of GNU as? I'd like to add info on the correct NASM switches to the FAQ...