kobalicek / mathpresso

Mathematical Expression Parser and JIT Compiler
Other
141 stars 16 forks source link

Link warning #2

Closed nelson2005 closed 8 years ago

nelson2005 commented 8 years ago

I'm not sure if you've seen this, but I'm embedding mathpresso-ng and asmjit, get a linker warning

1>LINK : warning C4744: 'struct asmjit::X86RegData const asmjit::x86RegData' has different type in 'C:\work\sim\common\asmjit\src\x86operand_regs.cpp' and 'C:\work\sim\common\asmjit\src\mathpresso_jit.cpp': 'union (3152 bytes)' and 'struct (3152 bytes)'

I'm using Visual Studio 2013 on Windows 7, if that's useful.

kobalicek commented 8 years ago

This warning is unfortunately unavoidable at the moment.

It's harmless. Asmjit uses a nasty trick to make sure the X86RegData struct is static const and put in read-only section, instead of initializing it at the application's startup.

nelson2005 commented 8 years ago

Okay, no worries. Since the sizes were the same, I guessed that it was okay.