anamil Posted March 26, 2013 Report Share Posted March 26, 2013 Hello, I am trying to build my first Hello World project in systemc, under cygwin. I get build error: undefined reference to _sc_main. Please help me how to resolve this problem. I installed systemc under cygwin in the objdir directory, with ./configure and the ./ make instal, and I have libsystemc in the library directory. Thank you Quote Link to comment Share on other sites More sharing options...
apfitch Posted March 26, 2013 Report Share Posted March 26, 2013 What command do you use to build your program? Alan Quote Link to comment Share on other sites More sharing options...
anamil Posted March 27, 2013 Author Report Share Posted March 27, 2013 I use Eclipse under cygwin. But in the meanwhile I resolved the issue. It was related to how I include the library, it should be written inside "" and not inside brackets <> thanks! Quote Link to comment Share on other sites More sharing options...
anamil Posted March 27, 2013 Author Report Share Posted March 27, 2013 I enjoy using systemc. Thanks! Quote Link to comment Share on other sites More sharing options...
Alexua Posted August 21, 2016 Report Share Posted August 21, 2016 I use Eclipse under cygwin. But in the meanwhile I resolved the issue. It was related to how I include the library, it should be written inside "" and not inside brackets <> thanks! I have the same problem with files having .cc extension.. Did you solve it? if yes, please how did you solve it Quote Link to comment Share on other sites More sharing options...
mayurkubavat Posted August 22, 2016 Report Share Posted August 22, 2016 I have the same problem with files having .cc extension.. Did you solve it? if yes, please how did you solve it If you are using SystemC under Eclipse, see this to configrue Eclipse with SystemC library. Quote Link to comment Share on other sites More sharing options...
Alexua Posted August 25, 2016 Report Share Posted August 25, 2016 If you are using SystemC under Eclipse, see this to configrue Eclipse with SystemC library. Thans a lot for replying. I have done it but the error is still the same. I am thinking that it could be the ordering in which the libraries are called. Do you know the right ordering? how could I set it? 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.