Page 1 of 1
C/C++ code cannot print to the console
Posted: Wed Oct 10, 2018 1:31 pm
by NetherGranite
Print tools like printf and std::cout in code that is loaded as a Lua module don't print to the console that comes with lovec. Is this just a problem with my computer? If not, is there a way around this?
Re: C/C++ code cannot print to the console
Posted: Thu Oct 11, 2018 6:04 pm
by pgimeno
Works for me on Linux. It must be a Windows thing.
Re: C/C++ code cannot print to the console
Posted: Sat Oct 13, 2018 10:59 am
by bartbes
On windows you need to make sure you link against the dynamic library version of the (same) c runtime. We've seen before that mixing runtimes causes output issues, for some reason.