OSDev.org

The Place to Start for Operating System Developers
It is currently Sun Apr 23, 2017 9:28 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Compilation test error
PostPosted: Tue Feb 28, 2017 5:20 am 
Offline
Member
Member

Joined: Sat Sep 17, 2016 2:14 am
Posts: 41
Location: Moscow, Russia
Moved to Code::Blocks, should do the trick.

_________________
I will be back... - Arnold Schwarzenegger
Code:
if tired = no then
code = yes
sleep = no
else
code = no
sleep = yes


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Tue Feb 28, 2017 6:15 am 
Offline
Member
Member
User avatar

Joined: Tue Aug 02, 2016 1:52 pm
Posts: 245
Location: East Riding of Yorkshire, UK
TimRyazanoff wrote:
Moved to Code::Blocks, should do the trick.
It shouldn't.

_________________
com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState
Compiler Development Wiki
Compiler Development Forum


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Tue Feb 28, 2017 8:33 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7025
Location: Germany
Generally speaking, you should understand what your toolchain is doing, and why. If you cannot understand it, get a simpler toolchain. (Not one that "magically works", a simpler one you can understand.)

When instructing newcomers to the field of programming, I usually forego the IDE shenanigans for the initial lessons, and teach people how to work with stand-alone text editor, compiler, linker, and eventually, Makefile. We then add more sophisticated tools as we go along.

Quote:
Using four-wheel drive just means you get stuck in more inaccessible places.

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Wed Mar 01, 2017 1:54 pm 
Offline
Member
Member

Joined: Sat Sep 17, 2016 2:14 am
Posts: 41
Location: Moscow, Russia
In DebugDisplay.cpp I get this:
error on line 275: invalid cast of an rvalue expression of type 'char' to type 'int&'.
What should I do?


Attachments:
DebugDisplay.cpp [7.93 KiB]
Downloaded 13 times

_________________
I will be back... - Arnold Schwarzenegger
Code:
if tired = no then
code = yes
sleep = no
else
code = no
sleep = yes
Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Wed Mar 01, 2017 4:02 pm 
Offline
Member
Member

Joined: Mon Feb 02, 2015 7:11 pm
Posts: 228
Learn about C/C++ types and casts. Then fix the code?

_________________
https://github.com/kiznit/rainbow-os


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Thu Mar 02, 2017 12:53 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 2709
Location: Chichester, UK
Why did you use that particular cast? What, exactly, are you expecting it to do?


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Thu Mar 02, 2017 4:29 am 
Offline
Member
Member

Joined: Sat Sep 17, 2016 2:14 am
Posts: 41
Location: Moscow, Russia
Now there are two errors in exception.cpp:
error on line 19: expected ( before { token
error on line 20: cli was not declared in this scope


Attachments:
exception.cpp [2.95 KiB]
Downloaded 9 times

_________________
I will be back... - Arnold Schwarzenegger
Code:
if tired = no then
code = yes
sleep = no
else
code = no
sleep = yes
Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Thu Mar 02, 2017 4:52 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 2709
Location: Chichester, UK
Are you going to post every error in your program?

Learn how to use inline assembler.


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Thu Mar 02, 2017 5:28 am 
Offline
Member
Member

Joined: Sat Sep 17, 2016 2:14 am
Posts: 41
Location: Moscow, Russia
Sure I will, sorry for being that picky.

_________________
I will be back... - Arnold Schwarzenegger
Code:
if tired = no then
code = yes
sleep = no
else
code = no
sleep = yes


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Thu Mar 02, 2017 6:02 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 2709
Location: Chichester, UK
OK.

You may find that people get a little tired of you pretty quickly.


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Thu Mar 02, 2017 1:34 pm 
Offline
Member
Member
User avatar

Joined: Fri Apr 03, 2015 9:41 am
Posts: 472
Solar wrote:
Do not try to learn C, debugging C, the intricacies of your toolchain, and writing an operating system at the same time. Please.


I did that previously. It gives you great experience but you'll need to rewrite your OS from scratch after that.

_________________
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing

OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Thu Mar 02, 2017 1:36 pm 
Offline
Member
Member
User avatar

Joined: Fri Apr 03, 2015 9:41 am
Posts: 472
TimRyazanoff wrote:
Sure I will, sorry for being that picky.

No problem :)
Can you give us your Makefile? We need it as you told us that Make gives you an error. We can't do anything if we won't see it.

_________________
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing

OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Thu Mar 02, 2017 1:38 pm 
Offline
Member
Member
User avatar

Joined: Fri Apr 03, 2015 9:41 am
Posts: 472
By the way, your code looks pretty beautiful. I really like its organization, but it doesn't work, haha.

_________________
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing

OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: MSNbot Media and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group