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

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  

×