I was afraid already...jal wrote:Didn't think it would, given that it's the linker that gives the error, but still it's better to have a working memset.
Don't mind, the exact error:jal wrote:Could you give the exact linker error output (sorry, too lazy to check the previous pages to see whether you already did).
Code: Select all
Error 16 error LNK2019: unresolved external symbol __aullshr referenced in function "int __cdecl install_ir(unsigned int,unsigned short,unsigned short,void (__cdecl*)(void))" (?install_ir@@YAHIGGP6AXXZ@Z) IDT.obj main
Error 17 error LNK2019: unresolved external symbol _memset referenced in function "int __cdecl idt_initialize(unsigned short)" (?idt_initialize@@YAHG@Z) IDT.obj main
Error 18 error LNK2001: unresolved external symbol _memset MemManagePhys.obj main
Error 19 error LNK2001: unresolved external symbol _memset MemManageVirt.obj main
Error 20 error LNK1120: 2 unresolved externals
I don't use aullshr myself, but I do use 'uiBase >> 16', and apparently that's replaced by the linker or compiler or whatever, that's why I'm afraid the solution Gigasoft posted isn't going to work, but more on that later.jal wrote:A simple Google reveals this. But why would you want to shift 64-bit variables in 32-bit code?
I'm using memset myself, it's even a function inside my own code (is that maybe just the problem?).jal wrote:And why does the linker complain about memset, if you don't use memset yourself? Are you sure you aren't linking some standard libraries?
@Gigasoft: Is this (the attachment) right then? And do I need to make a function in my C++
code to implement aullshr (with inline assembley) or don't I get you?
Thanks.