Missing external symbol __aullshr

OS Design, Theory, and Programming

Moderator: Moderators

Missing external symbol __aullshr

Postby BlastOS » Mon Sep 21, 2009 6:04 pm

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?
BlastOS
 
Posts: 5
Joined: Mon Sep 21, 2009 5:15 pm

Re: Missing external symbol __aullshr

Postby BlastOS » Mon Sep 21, 2009 7:09 pm

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...
BlastOS
 
Posts: 5
Joined: Mon Sep 21, 2009 5:15 pm

Re: Missing external symbol __aullshr

Postby Andyhhp » Tue Sep 22, 2009 2:57 pm

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
Image
Andyhhp
Moderator
 
Posts: 387
Joined: Tue Oct 23, 2007 10:05 am
Location: 127.0.0.1

Re: Missing external symbol __aullshr

Postby BlastOS » Thu Sep 24, 2009 4:27 pm

Thank you for those "tips", I will look for this later...
BlastOS
 
Posts: 5
Joined: Mon Sep 21, 2009 5:15 pm


Return to Advanced OS Development

Who is online

Users browsing this forum: No registered users and 2 guests

cron