LIBRARY_NAMES :=pthread `pkg-config –libs uuid` `mysql_config –libs`
output:
1> /usr/bin/g++ -o Debug/p2p.elf -Wl,-gc-sections -Wl,--start-group Debug/p2p.o Debug/PeerServer.o -lpthread -l`pkg-config -l--libs -luuid` -l`mysql_config -l--libs` -Wl,--end-group
must (output from NetBeans, for example):
g++ -o dist/Debug/GNU-Linux-x86/p2p build/Debug/GNU-Linux-x86/main.o build/Debug/GNU-Linux-x86/p2p.o -lpthread `pkg-config --libs uuid` `mysql_config --libs`