[?]Help Making OS [?] (Linker Error)

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.
User avatar
GeniusCobyWalker
Member
Member
Posts: 65
Joined: Mon Jan 12, 2009 4:17 pm

[?]Help Making OS [?] (Linker Error)

Post by GeniusCobyWalker »

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 :)
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
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: [?]Help Starting OS [?] (OS ayuda para empezar)

Post by JamesM »

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 :)
Describe what you don't get.

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.
User avatar
GeniusCobyWalker
Member
Member
Posts: 65
Joined: Mon Jan 12, 2009 4:17 pm

Re: [?]Help Starting OS [?]

Post by GeniusCobyWalker »

"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)
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
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Re: [?]Help Starting OS [?] (OS ayuda para empezar)

Post by PatrickV »

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
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: [?]Help Starting OS [?]

Post by Troy Martin »

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.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: [?]Help Starting OS [?]

Post by neon »

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.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: [?]Help Starting OS [?]

Post by JohnnyTheDon »

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.
Or, if you don't want to mess with partitions, run Ubuntu in a virtual machine (like VirtualBox).
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: [?]Help Starting OS [?]

Post by Troy Martin »

JohnnyTheDon wrote:
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.
Or, if you don't want to mess with partitions, run Ubuntu in a virtual machine (like VirtualBox).
I run Ubuntu in Virtual PC (huuge mistake, should find a vhd to vdi converter. :P)
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
GeniusCobyWalker
Member
Member
Posts: 65
Joined: Mon Jan 12, 2009 4:17 pm

Re: [?]Help Starting OS [?]

Post by GeniusCobyWalker »

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 :D
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
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: [?]Help Starting OS [?]

Post by JohnnyTheDon »

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.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: [?]Help Starting OS [?]

Post by Love4Boobies »

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 ]
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: [?]Help Starting OS [?]

Post by JohnnyTheDon »

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).
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: [?]Help Starting OS [?]

Post by Love4Boobies »

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 ]
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: [?]Help Starting OS [?]

Post by Troy Martin »

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!)
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: [?]Help Starting OS [?]

Post by Love4Boobies »

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 ]
Locked