Skip to content

How to solve -- Error: dlopen: ./out.so: undefined symbol #523

Answered by quark17
jrmejiaa asked this question in Q&A
Discussion options

You must be logged in to vote

If your C++ compiler is gcc/g++, try providing the following flag:

-D_GLIBCXX_USE_CXX11_ABI=0

You can do this by adding the following to the BSC command line, which will tell BSC to pass the flag on to the C++ compiler:

-Xc++ -D_GLIBCXX_USE_CXX11_ABI=0

When BSC constructs the C++ compiler command, it will also look for CXXFLAGS and BSC_CXXFLAGS in the environment and, if defined, will add the value to the C++ command that it executes.

To go into more detail: BSC comes with precompiled C++ objects that implement the kernel of Bluesim. When you compile a design, BSC generates the C++ for your design, compiles that C++ using your C++ compiler, and links the compiled design objetcs with the…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jrmejiaa
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants