Created
June 2, 2015 22:05
-
-
Save sebhtml/bfae198400404bcd81df to your computer and use it in GitHub Desktop.
bedtools 2.24 issue with g++ 4.4.7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// compile with g++ bug.cpp -fPIC | |
// This will produce this error with g++ 4.4.7 | |
// ./a.out: symbol lookup error: ./a.out: undefined symbol: _ZZN1A1B3fooERKSsS2_E8CONSTANT | |
#include <string> | |
namespace A | |
{ | |
class B | |
{ | |
public: | |
B(); | |
~B(); | |
protected: | |
void foo(const std::string& a, const std::string& b); | |
std::string m_attribute; | |
}; | |
B::B() | |
{ | |
foo("a1", "a2"); | |
} | |
B::~B() | |
{ | |
} | |
inline | |
void B::foo(const std::string& a, const std::string& b) | |
{ | |
static const std::string CONSTANT = ": "; | |
m_attribute = a + CONSTANT + b; | |
} | |
} | |
int main(int argc, char**argv) | |
{ | |
A::B object; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment