Are you explicitly launching the 64 bit console? The default start menu entry of VC is for the 32 bit console, even when running on a 64 bit system. To check, change out of the console launch directory (as the cl.exe found there is 32 bit at all times), and then launch cl.exe from the configured path.
OK output: Microsoft (R) C/C++ Optimizing Compiler Version 15.00.30729.01 for x64
NOT OK: Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Try running dumpbin /all on your lua52.lib file, and pay specific attention to the number of underscores following __imp. Building a 32 bit version against a 64 bit DLL/LIB will not work, of course.
From: jnlua-...@googlegroups.com [mailto:jnlua-...@googlegroups.com] On Behalf Of Michi
Sent: Mittwoch, 13. Juni 2012 00:08
To: jnlua-...@googlegroups.com
Subject: Re: Failing to build jnlua for win64
Thanks for the quick response!
You are right, the 32 bit version is being used. But I still get the same linker errors when trying to build the 32 bit version. I think I am missing something else.. :(
On Wednesday, June 13, 2012 12:02:40 AM UTC+2, Andre Naef wrote:
Are you explicitly launching the 64 bit console? The default start menu entry of VC is for the 32 bit console, even when running on a 64 bit system. To check, change out of the console launch directory (as the cl.exe found there is 32 bit at all times), and then launch cl.exe from the configured path.
OK output: Microsoft (R) C/C++ Optimizing Compiler Version 15.00.30729.01 for x64
NOT OK: Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86