Skip to content

Commit

Permalink
Fixes for MinGW linkage (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed Jun 11, 2017
1 parent f14d7ce commit d985924
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Chapter12/07_gil/07_gil.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if (!include(../../config.txt)) {

SOURCES += main.cpp
QMAKE_CXXFLAGS += $$CPP11FLAG
!msvc:LIBS += -lpng


# Those paths are used by CI scripts of the book. You shall not find those libraries by that path in default Boost archive.
# Just install libpng into your system and add correct include paths to the build script.
Expand All @@ -13,5 +13,7 @@ msvc {
QMAKE_LFLAGS += /LIBPATH:$$BOOST_PATH/libpng/build/native/lib/x64/v140/dynamic/Release/
LIBS += -llibpng16
} else {
unix:LIBS += -lpng
win32:LIBS += -lpng16
QMAKE_LFLAGS += -L$$BOOST_PATH/libpng/build/native/lib/x64/v140/dynamic/Release/
}

0 comments on commit d985924

Please sign in to comment.