[riot-users] Linking against gtest with RIOT and C++ compiler

Kaspar Schleiser kaspar at schleiser.de
Tue Feb 14 14:44:22 CET 2017


Hi,

On 02/14/2017 02:32 PM, Simon Brummer wrote:
> I am doing some small experiments with C++ under RIOT and I would like
> to use gtest on native.
> # External Libs
> LDFLAGS = -L../googletest
> LIB_1 = -lpthread
> LIB_2 = -lgtest
> LIBS += $(LDFLAGS) $(LIB_1) $(LIB_2)

Try LINKFLAGS instead of LIBS.

Kaspar



More information about the users mailing list