Linking multiple codon libraries together #672
Replies: 2 comments 9 replies
-
|
Hi @cainamisir -- could you please share more details like what system you're on? Also are you linking the Codon libraries when building the C++ program or are you |
Beta Was this translation helpful? Give feedback.
-
|
I found the root cause of this issue after some investigation, which actually has nothing to do with the runtime library initialization. The problem was that the global constructor Codon generated to call the main code when loading a shared library was externally visible, which caused a clash if multiple Codon-compiled libraries were linked as in your example. This is fixed in f21fa9b and will be in the next release! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am wondering if there is a way in which we can link multiple codon libraries together. Let's say I have a C++ library which cals a codon function x(). Then, in my main c++ code, I call another y() function from a different codon library, as well as the C++ library from above. This ends up in segfaults in main[unclash]
Right now the solution I have is to create a 3rd codon file and just import the 2 libraries there. Then call codon build on this single file. But this can get rather ugly
Beta Was this translation helpful? Give feedback.
All reactions