Compilation test error
- Thunderbirds747
- Member
- Posts: 83
- Joined: Sat Sep 17, 2016 2:14 am
- Location: Moscow, Russia
Compilation test error
G'day mates,
Tim here,
I have trouble with the makefile. I tried to make a makefile and as a result, the output says: "[Error] bootinfo.h: No such file or directory".
I tried adding the header for my test OS and it didn't work. I know I didn't yet finish the project, but I was trying to figure out the problem, but it didn't work. Any suggestions?
Sincerely,
Tim Ryazanoff (Tim Williams)
Tim here,
I have trouble with the makefile. I tried to make a makefile and as a result, the output says: "[Error] bootinfo.h: No such file or directory".
I tried adding the header for my test OS and it didn't work. I know I didn't yet finish the project, but I was trying to figure out the problem, but it didn't work. Any suggestions?
Sincerely,
Tim Ryazanoff (Tim Williams)
Coffee is not airplane fuel.
Re: Compilation test error
It says "Tim" five times in this post but not a single word about your project structure or contents of your makefile.
Learn to read.
Re: Compilation test error
TimRyazanoff wrote:the output says: "[Error] bootinfo.h: No such file or directory".
I suggest that bootinfo.h doesn't exist in your INCLUDE path.Any suggestions?
Re: Compilation test error
Well, it isn't where the computer is looking for it. So check your assumptions. (Paths, file names, current work directories, etc.)
Every good solution is obvious once you've found it.
- Thunderbirds747
- Member
- Posts: 83
- Joined: Sat Sep 17, 2016 2:14 am
- Location: Moscow, Russia
Re: Compilation test error
Here is the example: #include <bootinfo.h>
#include <fat.h> and that's it. Note that I am not yet done with coding. The kernel is well organised by folders, such as: Kernel, Lib, FAT12, floppy, Include and proc.
#include <fat.h> and that's it. Note that I am not yet done with coding. The kernel is well organised by folders, such as: Kernel, Lib, FAT12, floppy, Include and proc.
Coffee is not airplane fuel.
Re: Compilation test error
So where is bootinfo.h, and how did you tell your compiler where to find it?
Oh, and while we're at it:
Do not try to learn C, debugging C, the intricacies of your toolchain, and writing an operating system at the same time. Please.
Oh, and while we're at it:
Do not try to learn C, debugging C, the intricacies of your toolchain, and writing an operating system at the same time. Please.
Every good solution is obvious once you've found it.
Re: Compilation test error
I have no doubt that you are #including the file. But that doesn't guarantee that it exists in your INCLUDE path, does it? The compiler is telling you that it doesn't.
- Thunderbirds747
- Member
- Posts: 83
- Joined: Sat Sep 17, 2016 2:14 am
- Location: Moscow, Russia
Re: Compilation test error
Problem no. 2: "**recipe commences before first target. Stop".
Linked bootinfo.h in Dev C++, but MinGW is being a real pain in the arse. I use Dev C++ with GCC in MinGW.
Linked bootinfo.h in Dev C++, but MinGW is being a real pain in the arse. I use Dev C++ with GCC in MinGW.
- Attachments
-
- bootinfo.h
- (697 Bytes) Downloaded 56 times
Coffee is not airplane fuel.
Re: Compilation test error
Have you tried Googling that error message? It's probably more productive than expecting people to guess what your makefile looks like.
- Thunderbirds747
- Member
- Posts: 83
- Joined: Sat Sep 17, 2016 2:14 am
- Location: Moscow, Russia
Re: Compilation test error
I tried, but they were all for different IDEs, especially Linux. I am using Dev-C++, as I told you, so I need a bit of assistance, then I can go on my own.
Coffee is not airplane fuel.
Re: Compilation test error
So we're left with guessing. I'm not sure that's very productive.
Hint: I'm not convinced that which IDE you are using is relevant.
Hint: I'm not convinced that which IDE you are using is relevant.
- Schol-R-LEA
- Member
- Posts: 1925
- Joined: Fri Oct 27, 2006 9:42 am
- Location: Athens, GA, USA
Re: Compilation test error
It may be, at least in regards to advice on ways to check how it is configured; it may be using a different search path than the one you think it is using, for example. In other words, it may matter iff you aren't sure what it is doing, and need help with the IDE itself (as opposed to the programming).iansjack wrote:Hint: I'm not convinced that which IDE you are using is relevant.
However, such a problem is something that should be addressed before you even consider OS dev. You might also find it better to try a message board specifically about C++ and/or the IDE you are using (and by that I assume you mean the Orwell fork; if you are using the older, unmaintained Bloodshed Dev-C++, then for Eris' sake, delete it right now and get one that has been updated more recently than 2005). I have used Dev-C++ before, and a few others here may have as well, but I doubt there is anyone here who is an expert on it.
EDIT: OK, I can see from the screenshot that it is indeed the current version of Orwell Dev-C++. That's at least something. Unfortunately, checking the SF repo, it looks like that fork has stalled as well, with no updates since June 2015. Have you considered using something like Eclipse, Code::Blocks, or Geany, instead? For that matter, you might want to set aside the IDEs entirely and get your hands dirty with the command-line tools for a bit, if you haven't done that before, as it can really help you understand the things those tools are doing for you - automation is great, but to use it well you have to understand what is being automated.
Last edited by Schol-R-LEA on Mon Feb 27, 2017 2:42 pm, edited 3 times in total.
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.
Re: Compilation test error
The "recipe" error message normally refers to a malformed makefile raher than a search path.
But this is all just guessork without a sight of the code or the makefile.
i agree that this is not the best forum to deal with such errors.
But this is all just guessork without a sight of the code or the makefile.
i agree that this is not the best forum to deal with such errors.
- Thunderbirds747
- Member
- Posts: 83
- Joined: Sat Sep 17, 2016 2:14 am
- Location: Moscow, Russia
Re: Compilation test error
I have seen that my project is a Win32 Console Application, although I started on an empty project (no files whatsoever), but I will keep trying to get it to work.
Coffee is not airplane fuel.
Re: Compilation test error
The cause of your error is listed in the error messages section of the GNU make manual. https://www.gnu.org/software/make/manua ... ed-by-Make
Check your makefile. (No-one else can do so.)
Check your makefile. (No-one else can do so.)