views:

463

answers:

1

Hi,

What is the right way to build a library from source using MinGW and then reference it in the GUI application's project? I'm not familiar with gcc and makefiles, but I think there must be a utility which generates makefiles from existing source.

The library itself doesn't depend on anything except the standard C lib.

Thanks!

A: 

In the pro file write

LIBS += path/to/your/lib

This will add the reference to the static library. See the documentation.

Patrice Bernassola