Jump to content

undefined reference to _sc_main.


anamil

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

Link to comment
Share on other sites

  • 3 years later...

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

Link to comment
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?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...