Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation question #35

Open
pengyan19 opened this issue Oct 25, 2022 · 1 comment
Open

Installation question #35

pengyan19 opened this issue Oct 25, 2022 · 1 comment

Comments

@pengyan19
Copy link

Hi, when i install the popins2 software, i meet a question as follows:

popins2.cpp:(.text._ZZN12CompactedDBGIvvE20annotateSplitUnitigsERKS0_mbENKUlvE_clEv[_ZZN12CompactedDBGIvvE20annotateSplitUnitigsERKS0_mbENKUlvE_clEv]+0xdb7): undefined reference to Kmer::toString[abi:cxx11]() const' popins2.cpp:(.text._ZZN12CompactedDBGIvvE20annotateSplitUnitigsERKS0_mbENKUlvE_clEv[_ZZN12CompactedDBGIvvE20annotateSplitUnitigsERKS0_mbENKUlvE_clEv]+0xe05): undefined reference to Kmer::toStringabi:cxx11 const'
./build/popins2.o: In function std::enable_if<true, unsigned long>::type CompactedDBG<void, void>::joinUnitigs_<true>(std::vector<Kmer, std::allocator<Kmer> >*, unsigned long)': popins2.cpp:(.text._ZN12CompactedDBGIvvE12joinUnitigs_ILb1EEENSt9enable_ifIXT_EmE4typeEPSt6vectorI4KmerSaIS6_EEm[_ZN12CompactedDBGIvvE12joinUnitigs_ILb1EEENSt9enable_ifIXT_EmE4typeEPSt6vectorI4KmerSaIS6_EEm]+0x56d): undefined reference to Kmer::toStringabi:cxx11 const'
./build/popins2.o:popins2.cpp:(.text._ZN12CompactedDBGIvvE12joinUnitigs_ILb1EEENSt9enable_ifIXT_EmE4typeEPSt6vectorI4KmerSaIS6_EEm[_ZN12CompactedDBGIvvE12joinUnitigs_ILb1EEENSt9enable_ifIXT_EmE4typeEPSt6vectorI4KmerSaIS6_EEm]+0x5d8): more undefined references to `Kmer::toStringabi:cxx11 const' follow
collect2: error: ld returned 1 exit status
make: *** [popins2] Error 1

@Krannich479
Copy link
Collaborator

Hello @pengyan19 ,
I saw this error message once before using GCC 7.3.0 for compiling PopIns2. My ad hoc fix at that time is described in the PopIns2 Troubleshooting / FAQ at Q4.
With the current version 0.13.0 of PopIns2, please attempt to append -D_GLIB_CXX_USE_CXX11_ABI=0 to any of the CXXFLAGS (e.g. any of line 25-29 in the Makefile).
Out of curiosity, what compiler + version are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants