Page 1 of 1

Build, rebuild problem

Posted: Sat Mar 14, 2009 1:29 pm
by venk
Hello

I am having some problems.
I downloaded the demo from the tutorial on software interrupts, I built it and it worked. When I rebuild it, it gives an error that _aullshr is an unresolved external symbol.

If I edit it and just build it, no changes happen, so I guess I will have to rebuild it.

I used Visual C++ 2008 Express edition (free)

Thanks

Re: Build, rebuild problem

Posted: Sun Mar 15, 2009 4:35 pm
by Wabbit
I had this problem too, also with demo12. I persuaded it to compile by setting "Linker -> Input -> Ignore all default libraries" to No for Kernel/Lib, but I'm not sure if that's a good idea. The _aullshr function is used when a uint64 is shifted right (I think it stands for Arithmetic Unsigned Long Long Shift Right), and that is used a few times in the code, although after a quick look it seemed to me that unsigned longs would have sufficed.

Anyway, I had another look through the demos just now and I noticed that demo11 has this function in lib/cstd.cpp and so doesn't need any default libraries. For some reason it's missing from the others, even demo12, but maybe using that copy of cstd.cpp will fix the problem for you.
venk wrote:Hello

I am having some problems.
I downloaded the demo from the tutorial on software interrupts, I built it and it worked. When I rebuild it, it gives an error that _aullshr is an unresolved external symbol.

If I edit it and just build it, no changes happen, so I guess I will have to rebuild it.

I used Visual C++ 2008 Express edition (free)

Thanks

Posted: Mon Mar 16, 2009 5:41 am
by venk
Thanks it worked.

Sometimes unforeseen bugs can creep in, but this tutorial has very few

Thanks to Mike for this wonderful tutorial

Re: Build, rebuild problem

Posted: Mon Mar 16, 2009 10:31 pm
by Mike
Wabbit wrote:Anyway, I had another look through the demos just now and I noticed that demo11 has this function in lib/cstd.cpp and so doesn't need any default libraries. For some reason it's missing from the others, even demo12, but maybe using that copy of cstd.cpp will fix the problem for you.
Thanks for letting me know about that :) I will see if we can add the function to the other tutorials.

Useually when later tutorials/chapters get updated, all previous demos and some tutorials need to get updated as well so things get a little harder to manage and maintain.