OSDev.org https://forum.osdev.org/ |
|
Compilation test error https://forum.osdev.org/viewtopic.php?f=13&t=31390 |
Page 2 of 2 |
Author: | Thunderbirds747 [ Tue Feb 28, 2017 5:20 am ] |
Post subject: | Re: Compilation test error |
Moved to Code::Blocks, should do the trick. |
Author: | matt11235 [ Tue Feb 28, 2017 6:15 am ] |
Post subject: | Re: Compilation test error |
TimRyazanoff wrote: Moved to Code::Blocks, should do the trick. It shouldn't.
|
Author: | Solar [ Tue Feb 28, 2017 8:33 am ] |
Post subject: | Re: Compilation test error |
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.
|
Author: | Thunderbirds747 [ Wed Mar 01, 2017 1:54 pm ] | ||
Post subject: | Re: Compilation test error | ||
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?
|
Author: | kzinti [ Wed Mar 01, 2017 4:02 pm ] |
Post subject: | Re: Compilation test error |
Learn about C/C++ types and casts. Then fix the code? |
Author: | iansjack [ Thu Mar 02, 2017 12:53 am ] |
Post subject: | Re: Compilation test error |
Why did you use that particular cast? What, exactly, are you expecting it to do? |
Author: | Thunderbirds747 [ Thu Mar 02, 2017 4:29 am ] | ||
Post subject: | Re: Compilation test error | ||
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
|
Author: | iansjack [ Thu Mar 02, 2017 4:52 am ] |
Post subject: | Re: Compilation test error |
Are you going to post every error in your program? Learn how to use inline assembler. |
Author: | Thunderbirds747 [ Thu Mar 02, 2017 5:28 am ] |
Post subject: | Re: Compilation test error |
Sure I will, sorry for being that picky. |
Author: | iansjack [ Thu Mar 02, 2017 6:02 am ] |
Post subject: | Re: Compilation test error |
OK. You may find that people get a little tired of you pretty quickly. |
Author: | osdever [ Thu Mar 02, 2017 1:34 pm ] |
Post subject: | Re: Compilation test error |
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. |
Author: | osdever [ Thu Mar 02, 2017 1:36 pm ] |
Post subject: | Re: Compilation test error |
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. |
Author: | osdever [ Thu Mar 02, 2017 1:38 pm ] |
Post subject: | Re: Compilation test error |
By the way, your code looks pretty beautiful. I really like its organization, but it doesn't work, haha. |
Page 2 of 2 | All times are UTC - 6 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |