Re: wxGTK3/Win32 msvc2008 compilation errors with pure C files

On 12/21/2013 11:45 AM, John Emmas wrote:
This is a pure guess - but examine the compiler settings for your VS
projects and try swapping the advanced setting for C/C++ compilation.
i.e. if the setting is currently "Compile as C++ code", try changing it
to "Compile as C code" or vice versa.  I'm building with MSVC and I've
definitely seen similar issues when building _some_ gnu libraries
(though I can't be certain if GTK+ was one of them).  It might not be
relevant but it's something worth checking.

Hi John,

Thank you for this idea. I have compiled treeentry_gtk.c file as C++ as described in
and errors gone

Unfortunately this change could not be applied because wxWidgets uses automatically generated makefiles and project files, and it looks like current build system (bakefile) not supports this option. Also this file probably will not be renamed to *.cpp just because troubles with current GTK+/Win32 API.

It looks like there is troubles with __cplusplus usage in GTK+/Win32 headers.

Eventually I built wxGTK3/Win32 and minimal sample, but when I run this sample I have error message:
minimal.exe - Entry Point Not Found
The procedure entry point gdk_atom_intern could not be located in the dynamic link library libgtk-3-0.dll.

But gdk_atom_intern is inside libgtk-3-0.dll file:

$ objdump -x libgtk-3-0.dll|grep gdk_atom_intern
        49d180      9  gdk_atom_intern
        49d194     10  gdk_atom_intern_static_string
[36453](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x003409ac _gdk_atom_intern
[38172](sec 5)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00002178 __imp__gdk_atom_intern_static_string [39402](sec 5)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00002174 __imp__gdk_atom_intern [39446](sec 1)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x00340444 _gdk_atom_intern_static_string


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]