| cd ${GTEST_DIR}/make |
|
make |
| ./sample1_unittest |
On Oct 27, 6:44 pm, briandkid <briand...@gmail.com> wrote:
> Still does not work. Linking still fails
>
> On Oct 22, 8:13 pm, Greg Miller <j...@google.com> wrote:
>
>
>
>
>
>
>
> > I saw some references online to a recent version of Ubuntu that changed the
> > location of some system libraries. It said that things moved to something
> > like /usr/lib/$(uname -m)-linux-gnu/ or something. I suggest running [find
> > /lib /usr/lib -name '*pthread*'] to find the location of your pthread
> > library. Then make sure that directory is included in your library search
> > path to g++ with the -L option. Maybe something like the following:
>
> > g++ -I../include -g -Wall -Wextra *-L/usr/lib/$(uname
> > -m)-linux-gnu*-lpthread sample1.o sample1_unittest.o gtest_main.a -o
> > sample1_unittest
>
> > It should be easy to add this flag to CXXFLAGS in the provided
> > Makefile<http://code.google.com/p/googletest/source/browse/trunk/make/Makefile>to
> > test. Sorry I don't have an Ubuntu machine to test this on.
>
> > G~
>