I can't reproduce this problem with your latest published binaries
(from
http://sourceforge.net/projects/monaserver/files/MonaServer_1.2_Win32.zip/download)
- could you share the (presumably Debug build) binaries which you're
using? (I'm not sure whether the list will like executable
attachments; feel free to send to me privately if necessary)
On Sat, Apr 15, 2017 at 6:33 PM, Thomas Jammet <jammetthomas@xxxxxxxxx> wrote:
No sorry, it gives the same result. Not event with "printf_s".
--
Thomas JAMMET
Freelancer - MonaServer.ovh
14 Place Maschat - 19000 Tulle (France)
Tel : +336 23 46 39 80
http://fr.linkedin.com/pub/thomas-jammet/5a/411/60b/
2017-04-15 19:27 GMT+02:00 Ryan Gonzalez <rymg19@xxxxxxxxx>:
Does it work if you try using _printf instead?
--
Ryan (ライアン)
Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else
http://refi64.com/
On Apr 15 2017, at 11:37 am, Thomas Jammet <jammetthomas@xxxxxxxxx> wrote:
I am trying to run the basic example from FFI :
local ffi = require("ffi")
ffi.cdef[[
int printf(const char *fmt, ...);
]]
ffi.C.printf("Hello %s!", "world")
And here is the result :
cannot resolve symbol 'printf': The specified procedure could not be
found.
stack traceback:
[C]: in function '__index'
...rkspace\MonaServer\MonaServer\Debug\www\testffi\main.lua:5: in
main chunk
[C]: at 0x00281dc0
I don't know what I am missing but functions from stdio seems not
available.
I have compiled luajit with Visual Studio Express 2015 (v. 14.0.25420.01
Update 3). I have tried with last commit
(247b3624ffa7f01ee39fb62d4c1b0d1de0f5ef9b) and with releases 2.0.4, 2.0.1,
2.0.0 but it is always giving the same result. Any idea?
In addition I haven't built luajit with any parameters, just
"msvcbuild.bat" from VS2015 command prompt.
Thank you