schuschu Posted May 11, 2015 Report Share Posted May 11, 2015 Hi, I am currently trying to load modules from external dlls into a systemc application. Basic info: compiler gcc (from cygwin) x64 bit os: windows 7 Also I am using Systemc-AMS but as this appears to be a "problem" with the systemc core I posted it in this forum (feel free to move if inappropriate). The modules are build as shared libs and can can be loaded without problems (using the LoadLibrary function). While I can connect the ports with signals the runtime complains about "no driver" during simulation. As the same code compiled directly into the application works I assume it is not a problem with the SystemC code itself but with the core not "recognizing" the modules. I read on stackoverflow (http://stackoverflow.com/questions/13794659/loading-systemc-modules-dynamically-at-run-time) that someone had a similar problem once but no solution was posted. Has anyone ever done something similar and is able to help? schuschu Quote Link to comment Share on other sites More sharing options...
schuschu Posted May 11, 2015 Author Report Share Posted May 11, 2015 As for the reason why I believe it is a SystemC problem and related to the module being unknown to the core: It is missing from the list when I call sc_get_top_level_objects(). Quote Link to comment Share on other sites More sharing options...
schuschu Posted May 13, 2015 Author Report Share Posted May 13, 2015 Problem solved. I exported all symbols from the main application (which uses the whole-archive linker flag) and linked against them. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.