I was trying to set up GTest environment on my Ubuntu machine. but while making the GTest to get the library, i get the following error...
som@som-VPCEH25EN:
Try moving -lpthread to after gtest_main.a in your g++ command.
-lpthread
gtest_main.a