Jump to content
Sign in to follow this  
anamil

undefined reference to _sc_main.

Recommended Posts

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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×