C/C++ code cannot print to the console

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
NetherGranite
Prole
Posts: 30
Joined: Wed Jul 11, 2018 11:08 pm

C/C++ code cannot print to the console

Post 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?
User avatar
pgimeno
Party member
Posts: 2819
Joined: Sun Oct 18, 2015 2:58 pm

Re: C/C++ code cannot print to the console

Post by pgimeno »

Works for me on Linux. It must be a Windows thing.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: C/C++ code cannot print to the console

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests