Where can I read the output of g_print while debugging a GTK+ 3.0 project in VS2013?

683 views Asked by At

I have a GTK+3.0 project running in VS2013

I added to my linker command line options this argument: /ENTRY:mainCRTStartup

I suspect that might be related to the fact that I have no output in VS that shows the messages printed with g_print

I also tried calling printf and see no output in VS2013's output window, nor the "immediate window"

Does anyone have experience building C projects in VS2013 that use GTK+ 3.0 that could maybe tell me where I can see the messages printed by g_print and/or printf, or perhaps can you suggest a different way to debug print?

More details about how I set up the project in VS2013:

1

There are 1 answers

0
tmsimont On

To those who want to know..

I found the answer.

In my first link, the direction was to do the following:

While we are still in the view of the Project Properties, click on Linker and then System. Look for SubSystem on the right and click the drop down box. Select Windows /SUBSYSTEM:WINDOWS

If you omit this step, you get a GTK window and a console, where you can read the output of printf().