Page 1 of 1

Missing external symbol __aullshr

Posted: Mon Sep 21, 2009 6:04 pm
by BlastOS
Hello world,

It's my first post there!
First thing, These series of tutorials are very good. I like to see the next episodes...
I was reading all tutorials and trying to compile the code, when in the chapter 15 and I couldn't compile the sample code...
FYI: I'm using Visual Studio 2008 and I converted the code
I got missing external symbol __aullshr... and after looking around I found that it's Visual C++ try to call this for bit shifting.
I couldn't find a solution on google nor in this forum...
Am I missing anything or need I to code one for replacement?

Re: Missing external symbol __aullshr

Posted: Mon Sep 21, 2009 7:09 pm
by BlastOS
Ho never mind,

I found what was the problem:

the C/C++ optimizer was set to customize I set it to one other value and it's working...

Re: Missing external symbol __aullshr

Posted: Tue Sep 22, 2009 2:57 pm
by Andyhhp
There are 2 solutions that allow optimization.

Firstly, tell the compiler to optimise and not use builtins
Or, read http://wiki.osdev.org/Visual_Studio#Helpful_Compiler_Intrinsics: and extend it to the complete list of intrinsics, found here http://msdn.microsoft.com/en-us/library/26td21ds%28VS.85%29.aspx

Re: Missing external symbol __aullshr

Posted: Thu Sep 24, 2009 4:27 pm
by BlastOS
Thank you for those "tips", I will look for this later...