Skip to content

Fix building and linking on Visual-Studio style builds

Chun-wei Fan requested to merge fix.exports.msvc into master

Hi,

This attempts to fix the build for gtkmm master (4.x/C++17) on Visual Studio-style builds, by:

  • Removing the GTKMM_API marking from class ExpressionWatch final : public ExpressionWatchBase in gtk/src/expressionwatch.hg, since the class is a templatized class with its method implementations done in the header directly.

  • Mark closure_callback_func() in gtk/src/expression.hg with 'GTKMM_API` as that function needs to be exported.

The NMake Makefiles needs to be updated a bit as the command lines in there are growing too long, but that is for another MR.

This fixes issue #85 (closed).

With blessings, thank you!

Merge request reports