VanessaFaria Posted April 4, 2014 Report Share Posted April 4, 2014 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_H32 #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!! Quote Link to comment Share on other sites More sharing options...
apfitch Posted April 4, 2014 Report Share Posted April 4, 2014 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 Quote Link to comment Share on other sites More sharing options...
VanessaFaria Posted April 16, 2014 Author Report Share Posted April 16, 2014 Thanks Alan ! 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.