[XviD-devel] Question on asm code

Jacky Yuk scyuk at graduate.hku.hk
Wed Mar 3 11:58:43 CET 2004


Thank you for the help. It solved the prefix problem. However, I still 
cannot compile the asm code, the same syntax errors are encountered. 
Could anyone tell me any more thing I needed to add.

Thank you.

Regards,
Jacky Yuk

Kurosu wrote:

>On Wed, 3 Mar 2004, Jacky Yuk wrote:
>  
>
>>Furthermore, it seems that the symbols of global functions and variables
>>cannot be recognized by vc++ when linking to the compiled objects since
>>vc++ is finding the symbols with an underscore ( _ ) as the prefix.
>>Could anyone please kindly teach me how to solve such problems insttead
>>of manually change the names by adding the " _ " preifx in the asm code.
>>    
>>
>
>Maintainers/developpers will correct me, but you need to call nasm with:
>-DPREFIX -DWIN32
>
>Open one .asm file and you will see that, depending on those defines
>(you'll be able to find the right ones if the ones I gave aren't the ones
>needed), the macro cglobal properly add the "_" to the function name. This
>is needed because the asm functions are declared as extern "C" and that's
>how VC++ handles those declarations, btw (ie building with gcc doesn't
>need that).
>
>  
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://edu.bnhof.de/pipermail/xvid-devel/attachments/20040303/1ff12cd6/attachment.htm


More information about the XviD-devel mailing list