From: Jay Pipes <jaypi...@gmail.com>
Date: Sun, 11 Nov 2012 19:09:47 -0800 (PST)
Local: Sun, Nov 11 2012 10:09 pm
Subject: Trying to compile GTest, not linking pthread correctly?
Hello, looking for a bit of help with waf. Very impressed with it so far, I'm using the GTest library within my project, located in /tests/gtest. I Here is the file layout: http://pastebin.com/BWuUnPuB And here are the wscript files in question: /wscript: http://pastebin.com/3GbbD3Ne So far, so good. Keeping things as simple as possible. However,when I run a build, the gtest shlib *seems* to get built OK -- i.e. tests/gtest/libgtest.so: undefined reference to `pthread_key_create' The verbose output of waf is here: http://pastebin.com/Vz8DUVTw Furthermore, when looking at the command that creates the gtest library, I ['/usr/bin/g++', '-shared', 'tests/gtest/src/gtest-all.cc.1.o', '-o', And it seems to be that the -Wl -Bstatic -Wl -Bdynamic looks to be wrong? I don't think it matters, but here is the source for Any thoughts or pointers would be most appreciated! Cheers, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||