Page 2 of 2

Re: Compilation test error

Posted: Tue Feb 28, 2017 5:20 am
by Thunderbirds747
Moved to Code::Blocks, should do the trick.

Re: Compilation test error

Posted: Tue Feb 28, 2017 6:15 am
by matt11235
TimRyazanoff wrote:Moved to Code::Blocks, should do the trick.
It shouldn't.

Re: Compilation test error

Posted: Tue Feb 28, 2017 8:33 am
by Solar
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.
Using four-wheel drive just means you get stuck in more inaccessible places.

Re: Compilation test error

Posted: Wed Mar 01, 2017 1:54 pm
by Thunderbirds747
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?

Re: Compilation test error

Posted: Wed Mar 01, 2017 4:02 pm
by kzinti
Learn about C/C++ types and casts. Then fix the code?

Re: Compilation test error

Posted: Thu Mar 02, 2017 12:53 am
by iansjack
Why did you use that particular cast? What, exactly, are you expecting it to do?

Re: Compilation test error

Posted: Thu Mar 02, 2017 4:29 am
by Thunderbirds747
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

Re: Compilation test error

Posted: Thu Mar 02, 2017 4:52 am
by iansjack
Are you going to post every error in your program?

Learn how to use inline assembler.

Re: Compilation test error

Posted: Thu Mar 02, 2017 5:28 am
by Thunderbirds747
Sure I will, sorry for being that picky.

Re: Compilation test error

Posted: Thu Mar 02, 2017 6:02 am
by iansjack
OK.

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

Re: Compilation test error

Posted: Thu Mar 02, 2017 1:34 pm
by osdever
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.

Re: Compilation test error

Posted: Thu Mar 02, 2017 1:36 pm
by osdever
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.

Re: Compilation test error

Posted: Thu Mar 02, 2017 1:38 pm
by osdever
By the way, your code looks pretty beautiful. I really like its organization, but it doesn't work, haha.