Jump to content
Sign in to follow this  
VanessaFaria

systemc/codeblocks

Recommended Posts

Hello, i have installed system c on codeblocks and my computer is windows 8 and i created this program test

 

#include <iostream>
#include "systemc.h"
SC_MODULE(dff) { sc_in<bool > clk; sc_in<sc_logic > din; sc_out<sc_logic > dout; void p1() { if (clk.posedge()) { dout=din; } }SC_CTOR(dff) { SC_METHOD(p1); sensitive(clk);
}};
int main(){}

And there is a problem in the kernel,please take a look:

 

D:\Desktop\Vanessayo.cpp|2|fatal error: systemc.h: No such file or directory|

||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

 

D:\Desktop\CodeBlocks\systemc\src\sysc\kernel\sc_module.h|32|fatal error: sysc/kernel/sc_kernel_ids.h: No such file or directory|

||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

 

**************************************************************************/


#ifndef SC_MODULE_H
#define SC_MODULE_H

32 #include "sysc/kernel/sc_kernel_ids.h"
#include "sysc/kernel/sc_process.h"
#include "sysc/kernel/sc_module_name.h"
#include "sysc/kernel/sc_sensitive.h"
#include "sysc/kernel/sc_time.h"
#include "sysc/kernel/sc_wait.h"

The problem is on line 32,someone could help me please?

]

Thank you and have a nice day!!

 

Share this post


Link to post
Share on other sites

You need to set up the include path in your project (the path to systemc.h).

 

You'll also need to set up the the library path to the systemc library at the same time (I assume you have built the library).

 

You'll need to read the compiler documentation to find out how to do that,

 

regards

Alan

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...