swetas Posted May 14, 2014 Report Share Posted May 14, 2014 I want to create a .dll during the build of systemc through visual studio 2010 but it reports an error sc_main_main.obj : error LNK2019: unresolved external symbol _sc_main referenced in function _sc_elab_and_sim 1>Debug\SystemC.dll : fatal error LNK1120: 1 unresolved externals I do not want to have .lib but .dll. Quote Link to comment Share on other sites More sharing options...
Philipp A Hartmann Posted May 14, 2014 Report Share Posted May 14, 2014 You need to keep out "sc_main_main.cpp" (and "sc_main.cpp", providing the main() function) from your DLL building project.Windows DLLs do not support unresolved symbols, unlike ELF shared objects do. You then need to add (a library containing) sc_main(_main).cpp/obj to your application, to provide a main and to properly initialize the kernel via "sc_elab_and_sim". Of course you can adjust the implementation of this function to not call (the unresolved) sc_main function but add another mechanism to enter the user model at this point. hth,Philipp maehne 1 Quote Link to comment Share on other sites More sharing options...
princesse91 Posted April 29, 2015 Report Share Posted April 29, 2015 Hello, I want to open a file written in systemc *.cpp in quartus but it doesn't work.. Can anyone help me please?? 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.