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
Posts: 27
Joined: Wed Jul 11, 2018 11:08 pm

C/C++ code cannot print to the console

Post by NetherGranite » Wed Oct 10, 2018 1:31 pm

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
Party member
Posts: 1501
Joined: Sun Oct 18, 2015 2:58 pm

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

Post by pgimeno » Thu Oct 11, 2018 6:04 pm

Works for me on Linux. It must be a Windows thing.
Thrust II Reloaded - GifLoad for Löve - GSpöt GUI - My NotABug.org repositories - portland (mobile orientation)
The MS-Github repositories I had have been closed after the acquisition announcement and will be removed in the near future.

User avatar
Sex machine
Posts: 4944
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands

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

Post by bartbes » Sat Oct 13, 2018 10:59 am

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: Google [Bot] and 3 guests