[?]Help Making OS [?] (Linker Error)
- GeniusCobyWalker
- Member
- Posts: 65
- Joined: Mon Jan 12, 2009 4:17 pm
[?]Help Making OS [?] (Linker Error)
I have read "Getting Started, Bare Bones" but still don't get it.
I would prefer to use C++, I don't have a ton of C++ experience so I might need help.
I already have MS Visual Studio installed (C++ configured for OpenGL and Glut)
"Getting Started" sounds like suggestions to me. Can someone help me out or Tell me what to do?
Also how do I set all this up? (You don't have to suggest something, tell me how to do one and I will)
I stopped about a year ago, so don't remember anything (Also couldn't find help a year ago)
Thanks
I would prefer to use C++, I don't have a ton of C++ experience so I might need help.
I already have MS Visual Studio installed (C++ configured for OpenGL and Glut)
"Getting Started" sounds like suggestions to me. Can someone help me out or Tell me what to do?
Also how do I set all this up? (You don't have to suggest something, tell me how to do one and I will)
I stopped about a year ago, so don't remember anything (Also couldn't find help a year ago)
Thanks
Last edited by GeniusCobyWalker on Wed Jan 14, 2009 6:34 pm, edited 2 times in total.
Full Knowledge in:
GML, Ti-Basic, Zilog Z80 Assembly, SX28 Assembly and Blender
Experience in:
C++,OpenGl,NDS C++,Dark Basic,Dark Basic Pro,Dark Gdk and PSP Coding
Using:
Ubuntu ,GEdit ,NASM ,GCC ,LD ,Bochs
GML, Ti-Basic, Zilog Z80 Assembly, SX28 Assembly and Blender
Experience in:
C++,OpenGl,NDS C++,Dark Basic,Dark Basic Pro,Dark Gdk and PSP Coding
Using:
Ubuntu ,GEdit ,NASM ,GCC ,LD ,Bochs
Re: [?]Help Starting OS [?] (OS ayuda para empezar)
Describe what you don't get.GeniusCobyWalker wrote:I have read "Getting Started, Bare Bones" but still don't get it.
I would prefer to use C++, I don't have a ton of C++ experience so I might need help.
I already have MS Visual Studio installed (C++ configured for OpenGL and Glut)
"Getting Started" sounds like suggestions to me. Can someone help me out or Tell me what to do?
Also how do I set all this up? (You don't have to suggest something, tell me how to do one and I will)
I stopped about a year ago, so don't remember anything (Also couldn't find help a year ago)
Thanks
Be specific, and we will provide specific answers. You know from the fact that your last thread was locked that we ask people to do the required reading first - you've done some of it but there are many resources you missed. Go back and look at them again.
- GeniusCobyWalker
- Member
- Posts: 65
- Joined: Mon Jan 12, 2009 4:17 pm
Re: [?]Help Starting OS [?]
"Getting Sarted"
"Choosing your development environment"
Visual Studio Express (C++)
How do I set it up with this?
I got CYGWIN before and could never Uninstall it (NEVER doing that again)
"Choosing your development environment"
Visual Studio Express (C++)
How do I set it up with this?
I got CYGWIN before and could never Uninstall it (NEVER doing that again)
Full Knowledge in:
GML, Ti-Basic, Zilog Z80 Assembly, SX28 Assembly and Blender
Experience in:
C++,OpenGl,NDS C++,Dark Basic,Dark Basic Pro,Dark Gdk and PSP Coding
Using:
Ubuntu ,GEdit ,NASM ,GCC ,LD ,Bochs
GML, Ti-Basic, Zilog Z80 Assembly, SX28 Assembly and Blender
Experience in:
C++,OpenGl,NDS C++,Dark Basic,Dark Basic Pro,Dark Gdk and PSP Coding
Using:
Ubuntu ,GEdit ,NASM ,GCC ,LD ,Bochs
Re: [?]Help Starting OS [?] (OS ayuda para empezar)
Hello
Good to see that you want to make your own operating system. Look like you are having trouble understanding what to do. C++ is the most difficult or requires much work. For you the best bet is c langauge. What Bare Bones is showing you how start of your kernel in a few ways and C++ is one of them. Although the code has comments, you still don'y understand. The best bet is get some c language skills under belt. Now how do you put together your os kernel. well we use compilers,assemblers and linkers. That is far as i can help at this stage unless you refine or be more specific to your questions. Just remember building your os is not like a walk in the park. I found out the hard way.
Just keep on looking at wiki and some operating system kernels for examples. Here is a link you can goto http://www.osdever.net
Good to see that you want to make your own operating system. Look like you are having trouble understanding what to do. C++ is the most difficult or requires much work. For you the best bet is c langauge. What Bare Bones is showing you how start of your kernel in a few ways and C++ is one of them. Although the code has comments, you still don'y understand. The best bet is get some c language skills under belt. Now how do you put together your os kernel. well we use compilers,assemblers and linkers. That is far as i can help at this stage unless you refine or be more specific to your questions. Just remember building your os is not like a walk in the park. I found out the hard way.
Just keep on looking at wiki and some operating system kernels for examples. Here is a link you can goto http://www.osdever.net
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: [?]Help Starting OS [?]
Or, here's another plan: grab a linux distro, a separate partition or drive, install it, and use it for developing. Ubuntu is real user-friendly.
Re: [?]Help Starting OS [?]
Someone should probably update what the getting started article says with regards to MSVC++. A configuation file is not required.
Anyways, I recommend going with the language that you have the most experience and in depth knowledge in as you will certainly need to know it. If you dont have much experience in C++, then I would go with C instead.
Whatever you choose, the first step is always the booting stage. Either decide to write your own or use an existing boot loader (GRUB is usually recommended for this.) Afterwords you can worry about using a higher level language for your OS and deciding the build environment and tool chain for your kernel or OS-specific loading program.
Anyways, I recommend going with the language that you have the most experience and in depth knowledge in as you will certainly need to know it. If you dont have much experience in C++, then I would go with C instead.
Whatever you choose, the first step is always the booting stage. Either decide to write your own or use an existing boot loader (GRUB is usually recommended for this.) Afterwords you can worry about using a higher level language for your OS and deciding the build environment and tool chain for your kernel or OS-specific loading program.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
-
- Member
- Posts: 524
- Joined: Sun Nov 09, 2008 2:55 am
- Location: Pennsylvania, USA
Re: [?]Help Starting OS [?]
Or, if you don't want to mess with partitions, run Ubuntu in a virtual machine (like VirtualBox).Or, here's another plan: grab a linux distro, a separate partition or drive, install it, and use it for developing. Ubuntu is real user-friendly.
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: [?]Help Starting OS [?]
I run Ubuntu in Virtual PC (huuge mistake, should find a vhd to vdi converter. )JohnnyTheDon wrote:Or, if you don't want to mess with partitions, run Ubuntu in a virtual machine (like VirtualBox).Or, here's another plan: grab a linux distro, a separate partition or drive, install it, and use it for developing. Ubuntu is real user-friendly.
- GeniusCobyWalker
- Member
- Posts: 65
- Joined: Mon Jan 12, 2009 4:17 pm
Re: [?]Help Starting OS [?]
Sorry Guess I forgot to mention I have a Vista, Xp, Ubuntu Triple boot.
Would it be easier to develop on Ubuntu?
Or are more tools available for Ubuntu?
I'm familiar with it too. But no programming tools on my Ubuntu.
(Would actually prefer to use Ubuntu) (Why didn't I think of that before?)
Tell me what Ubuntu programs to get.
Thanks
Would it be easier to develop on Ubuntu?
Or are more tools available for Ubuntu?
I'm familiar with it too. But no programming tools on my Ubuntu.
(Would actually prefer to use Ubuntu) (Why didn't I think of that before?)
Tell me what Ubuntu programs to get.
Thanks
Full Knowledge in:
GML, Ti-Basic, Zilog Z80 Assembly, SX28 Assembly and Blender
Experience in:
C++,OpenGl,NDS C++,Dark Basic,Dark Basic Pro,Dark Gdk and PSP Coding
Using:
Ubuntu ,GEdit ,NASM ,GCC ,LD ,Bochs
GML, Ti-Basic, Zilog Z80 Assembly, SX28 Assembly and Blender
Experience in:
C++,OpenGl,NDS C++,Dark Basic,Dark Basic Pro,Dark Gdk and PSP Coding
Using:
Ubuntu ,GEdit ,NASM ,GCC ,LD ,Bochs
-
- Member
- Posts: 524
- Joined: Sun Nov 09, 2008 2:55 am
- Location: Pennsylvania, USA
Re: [?]Help Starting OS [?]
What you need for Ubuntu OS Dev:
Compiler/Linker:
gcc, ld, etc. - build-essential package
binutils - binutils package
Editor:
gedit - already installed
Emulator:
bochs - bochs package
OR
qemu - qemu package
Download these packages (either with Synaptic or 'sudo apt-get install' ) and you should be good to go.
Learn how to use makefiles, as they will make building very easy.
Compiler/Linker:
gcc, ld, etc. - build-essential package
binutils - binutils package
Editor:
gedit - already installed
Emulator:
bochs - bochs package
OR
qemu - qemu package
Download these packages (either with Synaptic or 'sudo apt-get install' ) and you should be good to go.
Learn how to use makefiles, as they will make building very easy.
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: [?]Help Starting OS [?]
Well, they are pretty much the same. I recommend GCC, NASM (well, that's me), Bochs.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
-
- Member
- Posts: 524
- Joined: Sun Nov 09, 2008 2:55 am
- Location: Pennsylvania, USA
Re: [?]Help Starting OS [?]
Oh yeah forgot about the assembler *facepalm*
Get nasm or yasm. There is only really a difference when developing 64-bit OSes. Last time I checked, nasm won't create 64-bit ELFs (though this may have changed).
Get nasm or yasm. There is only really a difference when developing 64-bit OSes. Last time I checked, nasm won't create 64-bit ELFs (though this may have changed).
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: [?]Help Starting OS [?]
Hmm... I didn't see that someone replied before I did so half (yeah, I know, don't start counting) the things I suggested were already there... /facepalm
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: [?]Help Starting OS [?]
I use as from binutils for loader.s from the barebones kernel (well, techinically could be done in C) since it's AT&T syntax, like the inline asm (but I prefer Intel syntax since it's more readable imho!)
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: [?]Help Starting OS [?]
You do realise that you can use Intel syntax with as as well, right?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]