compile??

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.
Locked
simkinggold
Posts: 10
Joined: Mon Jul 14, 2008 12:25 pm

compile??

Post by simkinggold »

ok seriously me and my friend are so annoyed at kernels and os'es we just wanna smash up our computer. we eventually came to the annoying conclusion were not smart enough to make our own kernel. After looking on the net, we got the source of the linux kernel and decided to add some of our simple but funtional C++ apps that we've been learning for about 8 months.

but i cant compile it and dont know how. I know i dont visit here often its just i am rly annoyed at os development and it irratates me to see so many people can do it except we cant....

i always fail at programming :cry:

can someone help? please???? thanks a lot in advance
User avatar
narke
Member
Member
Posts: 119
Joined: Wed Dec 26, 2007 3:37 am
Location: France

Re: compile??

Post by narke »

The Linux API is in C, you can't add C++ functions and expect that all works fine together.
Some guys added C++ support features to the Linux kernel some years ago, but it's not officialy supported.
You must read kernel tutorials and books before start to code (us most of us did one day).
OS for PowerPC Macs: https://github.com/narke/Einherjar
Operating system: colorForth computing environment for x86.: https://github.com/narke/Roentgenium
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: compile??

Post by JohnnyTheDon »

simkinggold wrote:we got the source of the linux kernel and decided to add some of our simple but funtional C++ apps that we've been learning for about 8 months.
As narke said the kernel is written in C. And by 'simple but functional' I'm guessing you mean they are the type of programs that low level C++ courses involve (ie "Input hourly wage, input hours, output wage"). In any case applications are not designed to go into a kernel, and they are run in user mode for a reason.

Are you sure you understand what a kernel is?
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: compile??

Post by jal »

simkinggold wrote:but i cant compile it and dont know how.
That's probably why you failed at OS design. Try learning the basics first, or just give up on OSes.


JAL
simkinggold
Posts: 10
Joined: Mon Jul 14, 2008 12:25 pm

Re: compile??

Post by simkinggold »

I just don't get why making an os is so hard :x
narke wrote:Some guys added C++ support features to the Linux kernel some years ago, but it's not officialy supported.
Fine we'll learn C then
narke wrote:You must read kernel tutorials and books before start to code (us most of us did one day).
There's tutorials and books like that?
Cool!
jal wrote:Try learning the basics first, or just give up on OSes.
Why should we just give up? If I came into contact with one of the Linux developers or developers of Ubuntu we might have a bit of help :?
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: compile??

Post by JohnnyTheDon »

Doing anything with the Linux kernel will be a lot harder than just following tutorials like Bare Bones on the wiki and making your own OS. What type of functionallity are you trying to add? Have you taken a look at linux kernel modules?
I just don't get why making an os is so hard :x
What makes you think it would be easy?
Why should we just give up? If I came into contact with one of the Linux developers or developers of Ubuntu we might have a bit of help :?
Probably not, unless what you're trying to add to the kernel will be useful for others.
User avatar
stephenj
Member
Member
Posts: 140
Joined: Wed Jul 23, 2008 1:37 am
Location: Canada

Re: compile??

Post by stephenj »

simkinggold wrote:I just don't get why making an os is so hard :x
I wouldn't say this on a forum full of OS devs who have worked hard to make their OSes.
simkinggold wrote:Why should we just give up?
For the same reason an infant shouldn't try to compete in the Olympic 100m dash. They aren't ready yet. Giving up isn't the thing to do, but setting realistic goals is. Learn how to crawl before learning how to walk (or run as the case may be).
simkinggold wrote:If I came into contact with one of the Linux developers or developers of Ubuntu we might have a bit of help :?
You can help yourself by learning more about programming, and reading the wiki. If you don't want to help yourself, why should any of us want to help you? (This is a rhetorical question)
User avatar
steveklabnik
Member
Member
Posts: 72
Joined: Wed Jan 28, 2009 4:30 pm

Re: compile??

Post by steveklabnik »

simkinggold wrote:I just don't get why making an os is so hard :x
simkinggold wrote:There's tutorials and books like that?
Cool!
I call troll.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: compile??

Post by Combuster »

I call this deliberately ignoring forum rules (missing required knowledge, repeated making of beginner mistakes).
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Locked