Page 1 of 1

Demo 8 __aullshr, reference

Posted: Thu Oct 29, 2009 5:05 pm
by _ross_
In Visual Studio 2008. I get an unresolved external reference to __aullshr for every Unsigned shift right.
In Visual C++ 2005 Express it compiles, but it says its corrupt...(Ot, it can't find it).

Is this (VS2008) bug known?
And, is there a way of fixing either of these problems?

Re: Demo 8 __aullshr, reference

Posted: Fri Oct 30, 2009 2:31 pm
by BlastOS

I had the same problem ... =16&t=1254

You can find in the project properties a optimizer option that you need to set to other than custom

Hope it'll help...

Re: Demo 8 __aullshr, reference

Posted: Fri Oct 30, 2009 4:42 pm
by _ross_
That fixed that...... But still: MISSING OR CORRUPT KRNL32.EXE

Re: Demo 8 __aullshr, reference

Posted: Sat Oct 31, 2009 1:26 am
by Andyhhp
__aullshr is an intrinsic MSCV operation.

you need to specify in the compiler settings not to use builtin functions (settings -> C/C++ -> advanced)

alternativly, stick

Code: Select all

extern unsigned int _aullshr(unsigned int)
in a header file somewhere