Compilation test error

Programming, for all ages and all languages.
User avatar
Thunderbirds747
Member
Member
Posts: 83
Joined: Sat Sep 17, 2016 2:14 am
Location: Moscow, Russia

Re: Compilation test error

Post by Thunderbirds747 »

Moved to Code::Blocks, should do the trick.
Coffee is not airplane fuel.
User avatar
matt11235
Member
Member
Posts: 286
Joined: Tue Aug 02, 2016 1:52 pm
Location: East Riding of Yorkshire, UK

Re: Compilation test error

Post by matt11235 »

TimRyazanoff wrote:Moved to Code::Blocks, should do the trick.
It shouldn't.
com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState
Compiler Development Forum
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Compilation test error

Post 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.
Every good solution is obvious once you've found it.
User avatar
Thunderbirds747
Member
Member
Posts: 83
Joined: Sat Sep 17, 2016 2:14 am
Location: Moscow, Russia

Re: Compilation test error

Post 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?
Attachments
DebugDisplay.cpp
(7.93 KiB) Downloaded 55 times
Coffee is not airplane fuel.
kzinti
Member
Member
Posts: 898
Joined: Mon Feb 02, 2015 7:11 pm

Re: Compilation test error

Post by kzinti »

Learn about C/C++ types and casts. Then fix the code?
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Compilation test error

Post by iansjack »

Why did you use that particular cast? What, exactly, are you expecting it to do?
User avatar
Thunderbirds747
Member
Member
Posts: 83
Joined: Sat Sep 17, 2016 2:14 am
Location: Moscow, Russia

Re: Compilation test error

Post 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
Attachments
exception.cpp
(2.95 KiB) Downloaded 52 times
Coffee is not airplane fuel.
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Compilation test error

Post by iansjack »

Are you going to post every error in your program?

Learn how to use inline assembler.
User avatar
Thunderbirds747
Member
Member
Posts: 83
Joined: Sat Sep 17, 2016 2:14 am
Location: Moscow, Russia

Re: Compilation test error

Post by Thunderbirds747 »

Sure I will, sorry for being that picky.
Coffee is not airplane fuel.
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Compilation test error

Post by iansjack »

OK.

You may find that people get a little tired of you pretty quickly.
User avatar
osdever
Member
Member
Posts: 492
Joined: Fri Apr 03, 2015 9:41 am
Contact:

Re: Compilation test error

Post 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.
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.
User avatar
osdever
Member
Member
Posts: 492
Joined: Fri Apr 03, 2015 9:41 am
Contact:

Re: Compilation test error

Post 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.
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.
User avatar
osdever
Member
Member
Posts: 492
Joined: Fri Apr 03, 2015 9:41 am
Contact:

Re: Compilation test error

Post by osdever »

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.
Post Reply