We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,605 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How to boot a c++ code?

Hey Guys!
I am vedel and this is my first Thread in this Community. My question is, how i can boot a c++ code?

example code:

#include <iostream>

using namespace std;

int main()
{
    cout << "Hello World!" << endl;
    return 0;
}
5
Contributors
9
Replies
22 Hours
Discussion Span
2 Years Ago
Last Updated
10
Views
vedel
Newbie Poster
12 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

What do you mean "boot a c++ program" ? Compile it? You need a good c++ compiler such as Code::Blocks or VC++ 2010 Express.

Ancient Dragon
Achieved Level 70
Team Colleague
32,269 posts since Aug 2005
Reputation Points: 5,852
Solved Threads: 2,590
Skill Endorsements: 70

Get Bloodshed... Still the best for pure C++ apps. If you intend to make apps for win32, get Visual C++ 2010 Express (it's free! :D)

ChaosKnight11
Light Poster
33 posts since Jul 2010
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

>>Get Bloodshed

That compiler hasn't been updated for quite a few years now and uses an old version of MinGW. Code::Blocks is current and still being supported by its writers. Bloodshet isn't.

Ancient Dragon
Achieved Level 70
Team Colleague
32,269 posts since Aug 2005
Reputation Points: 5,852
Solved Threads: 2,590
Skill Endorsements: 70

i want to make a OS but i didn know how i can boot a c++ code!

vedel
Newbie Poster
12 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Ancient Dragon
Achieved Level 70
Team Colleague
32,269 posts since Aug 2005
Reputation Points: 5,852
Solved Threads: 2,590
Skill Endorsements: 70

Read this tutorial

yeah i know this tutorial and i try it out but it did not work

vedel
Newbie Poster
12 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

yeah i know this tutorial and i try it out but it did not work

I wrote something like this but didn't use C++, I used asm(16 bit) plus had to write my own linker script to get it to work...

Projects like this are very interesting and the end result is generally a very simple exe that will boot the computer...I would try ams if your really interested in pursuing this.

Here's another link..

http://linuxgazette.net/77/krishnakumar.html

gerard4143
Nearly a Posting Maven
2,295 posts since Jan 2008
Reputation Points: 512
Solved Threads: 397
Skill Endorsements: 0

i want to make a OS but i didn know how i can boot a c++ code!

seems like you want to get Bill and Shuttleworthy off the deal.
Do you mean it or just for little funny?

Stefano Mtangoo
Senior Poster
3,733 posts since Jun 2007
Reputation Points: 462
Solved Threads: 396
Skill Endorsements: 0

I wrote something like this but didn't use C++, I used asm(16 bit) plus had to write my own linker script to get it to work...

Projects like this are very interesting and the end result is generally a very simple exe that will boot the computer...I would try ams if your really interested in pursuing this.

Here's another link..

http://linuxgazette.net/77/krishnakumar.html

cool tutorial but i cant download the programm to convert the files

vedel
Newbie Poster
12 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0921 seconds using 2.75MB