x86 asm bios interrupts in C

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
alberinfo
Member
Member
Posts: 122
Joined: Wed Aug 29, 2018 4:42 pm

Re: x86 asm bios interrupts in C

Post by alberinfo »

affortunately for you the directory is exactly as i have. i will try to do it

Thanks!
alberinfo
Member
Member
Posts: 122
Joined: Wed Aug 29, 2018 4:42 pm

Re: x86 asm bios interrupts in C

Post by alberinfo »

ok, nothing changes, still making the same multiple and undefined references to the same functoins
User avatar
pvc
Member
Member
Posts: 201
Joined: Mon Jan 15, 2018 2:27 pm

Re: x86 asm bios interrupts in C

Post by pvc »

I really don't know now. I've unpacked the file I've uploaded and it just works for me. What is the exact output of build.sh command? BTW. I use GCC version 7.3.0, LD version 2.30, NASM version 2.13.02 on Ubuntu 18.04 64-bit. Maybe you could try adding -nostdinc for every GCC call and -nostdlib for LD call. If that does not work… I have no idea.
alberinfo
Member
Member
Posts: 122
Joined: Wed Aug 29, 2018 4:42 pm

Re: x86 asm bios interrupts in C

Post by alberinfo »

nope.not working. ld still bringing the same undefined and multiple definitions of the same funtions. i don't know why this happens
User avatar
pvc
Member
Member
Posts: 201
Joined: Mon Jan 15, 2018 2:27 pm

Re: x86 asm bios interrupts in C

Post by pvc »

And does 'my' makefile version work for you?
alberinfo
Member
Member
Posts: 122
Joined: Wed Aug 29, 2018 4:42 pm

Re: x86 asm bios interrupts in C

Post by alberinfo »

no. when you passed me the file for first time, i tried to do it with the makefile, and it was even worst.but if i compile without implementing it in my OS it works
User avatar
pvc
Member
Member
Posts: 201
Joined: Mon Jan 15, 2018 2:27 pm

Re: x86 asm bios interrupts in C

Post by pvc »

What host OS do you use? My last try will be installing what you have in a VM and try myself.
alberinfo
Member
Member
Posts: 122
Joined: Wed Aug 29, 2018 4:42 pm

Re: x86 asm bios interrupts in C

Post by alberinfo »

i use linux mint 18.3
User avatar
pvc
Member
Member
Posts: 201
Joined: Mon Jan 15, 2018 2:27 pm

Re: x86 asm bios interrupts in C

Post by pvc »

I think there is something wrong with your toolchain. I've made a fresh install of Mint 18.3 and updated it. Both archives compile and run perfectly fine for me.
alberinfo
Member
Member
Posts: 122
Joined: Wed Aug 29, 2018 4:42 pm

Re: x86 asm bios interrupts in C

Post by alberinfo »

then i will update nasm gcc and LD, i hope that to work
alberinfo
Member
Member
Posts: 122
Joined: Wed Aug 29, 2018 4:42 pm

Re: x86 asm bios interrupts in C

Post by alberinfo »

not working even with updating
User avatar
Schol-R-LEA
Member
Member
Posts: 1925
Joined: Fri Oct 27, 2006 9:42 am
Location: Athens, GA, USA

Re: x86 asm bios interrupts in C

Post by Schol-R-LEA »

alberinfo wrote:no, i dont have github or other types of repo
OK, I really, really recommend that you drop everything until you have all your code under version control. Seriously, as I have said to others here, programming without version control is like skydiving without a parachute.

I don't care which one you use, but please, use something, for your own sake.

Even if you don't set up a copy of it a hosted repo - and there are few if any reasons not to, as most hosting services are free for open source projects - at the very least have it under a local repository. You will come to regret it if you don't - I would hazard a guess that every older member here, from the days when free VCS wasn't common, could tell you their horror stories about that. I certainly recall several instances where I lost weeks of work because of either a disk failure or a careless move on my part.

Regarding the toolchain, have you set up a GCC Cross-Compiler, or are you using the default toolchain installed with your Mint VM?
Last edited by Schol-R-LEA on Sat Sep 15, 2018 12:20 pm, edited 1 time 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.
User avatar
pvc
Member
Member
Posts: 201
Joined: Mon Jan 15, 2018 2:27 pm

Re: x86 asm bios interrupts in C

Post by pvc »

Sorry, but I am out of ideas :(
alberinfo
Member
Member
Posts: 122
Joined: Wed Aug 29, 2018 4:42 pm

Re: x86 asm bios interrupts in C

Post by alberinfo »

as i installed all that i need, i started to use. so i don't have set up a cross compiler

pvc, don't worry, i think i'll find the solution if i keep trying :)
alberinfo
Member
Member
Posts: 122
Joined: Wed Aug 29, 2018 4:42 pm

Re: x86 asm bios interrupts in C

Post by alberinfo »

ok. i will try to create a repo in github.

There it is
https://github.com/alberinfo/Slidoor-OS
Post Reply