How to build a program in IDE, with information from makefile that built it (in msys mingw)

Greetings all,

I used msys64 - mingw32 (on Windows 7, 64 bit) to build a 3rd party library (https://sourceforge.net/p/libosmscout/code/ci/master/tree/) using a supplied makefile. Libraries and demo programs built fine, and one particular demo I was interested in (Demos/src/DrawMapCairo) runs well.

Now I would like to build this demo program in Code::Blocks IDE. So far I found LIBS and CFLAGS in makefile, and copied the flags into project->linker settings->other linker options.

some flags for example.:

1
2
3
LIBOSMSCOUT_CFLAGS = -fopenmp -mmmx -msse -msse2 -mssse3
LIBOSMSCOUT_LIBS = -losmscoutmap -fopenmp -losmscout
LIBPNG_LIBS = -L/mingw32/lib -lpng16 -lz   


Program builds fine (0 errors/warnings) but doesn't run (crashes upon execution). What compiler flags and settings from the makefile should I search for and copy to project settings, if I want the IDE to build the program as well?

Thank you very much for help
cheers T
Last edited on
Topic archived. No new replies allowed.