Page 5 of 6
Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 9:21 am
by alberinfo
affortunately for you the directory is exactly as i have. i will try to do it
Thanks!
Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 9:32 am
by alberinfo
ok, nothing changes, still making the same multiple and undefined references to the same functoins
Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 9:39 am
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.
Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 9:44 am
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
Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 9:47 am
by pvc
And does 'my' makefile version work for you?
Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 9:49 am
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
Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 9:51 am
by pvc
What host OS do you use? My last try will be installing what you have in a VM and try myself.
Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 9:52 am
by alberinfo
i use linux mint 18.3
Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 11:46 am
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.
Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 11:51 am
by alberinfo
then i will update nasm gcc and LD, i hope that to work
Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 12:12 pm
by alberinfo
not working even with updating
Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 12:16 pm
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?
Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 12:17 pm
by pvc
Sorry, but I am out of ideas
Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 12:19 pm
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
Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 12:22 pm
by alberinfo
ok. i will try to create a repo in github.
There it is
https://github.com/alberinfo/Slidoor-OS