Page 1 of 1

PB 5.0 B8, zlib.lib extrn crc32, reserved symbol error, x64

Posted: Sat Nov 03, 2012 7:37 am
by Rescator
Trying to do a ImportC "zlib.lib" fails if trying to import crc32().
AFAIK crc32 is a x64 instruction, so there could be a conflict there.

---------------------------
PureBasic - Assembler error
---------------------------
PureBasic.asm [xxx]:
extrn crc32
error: reserved word used as symbol.

Compiling zlib.lib with the -DZ_PREFIX flag might be one solution.

Re: PB 5.0 B8, zlib.lib extrn crc32, reserved symbol error,

Posted: Mon Jan 14, 2013 3:33 pm
by Fred
That's not a PB bug, you can't import a function with the same name than an asm token. If you really need it, you should recompile the zlib with Z_PREFIX and use it.