libgtest-dev error in make file

Bug #985837 reported by Joe Wood
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gtest (Debian)
Fix Released
Unknown
gtest (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

System: Ubuntu 11.10
Package: libgtest-dev
Version: 1.6.1-0

Problem:

The file /usr/share/doc/libgtest-dev/examples/make/Makefile (when installed) supplies an argument of -lpthread to g++ for linking sample1_unittest, which does not link on Ubuntu 11.10.

The documentation for pthreads suggests it should be -pthread and this does indeed link and run.

Solution:
Change -lpthread to -pthread

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gtest (Ubuntu):
status: New → Confirmed
Changed in gtest (Debian):
status: Unknown → Confirmed
Changed in gtest (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.