OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Nov 17, 2018 7:11 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 77 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
 Post subject: Re: x86 asm bios interrupts in C
PostPosted: Sat Sep 15, 2018 2:18 pm 
Offline
Member
Member
User avatar

Joined: Mon Jan 15, 2018 2:27 pm
Posts: 40
It finally works. It is still a mess but at least compiles and works.
The problem was that you've completely mixed up .c and .h files. In short: In .h files you should declare functions and stuff. In .c files you should define functions. That means you should never put function bodies in .h file nor you should ever do #include "something.c" (unless you REALLY know what you're doing) or you'll get yourself into huge mess after a short while. There were also some preprocessor and symbol conflicts with my and your existing code.
You should consider reading something about C (and general) coding practices and how preprocessing, compiling and linking processes work.


Attachments:
Slidoor-OS-master.tar.gz [16.05 KiB]
Downloaded 3 times

_________________
https://github.com/pvc988/woot
Top
 Profile  
 
 Post subject: Re: x86 asm bios interrupts in C
PostPosted: Sat Sep 15, 2018 2:46 pm 
Offline
Member
Member

Joined: Wed Aug 29, 2018 4:42 pm
Posts: 94
Thanks you!now it works

_________________
https://github.com/alberinfo/Slidoor-os/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 77 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6

All times are UTC - 6 hours


Who is online

Users browsing this forum: CHOSTeam and 19 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