Hello everyone,
I’m new in systemc and in this forum.
I successfully downloaded and installed systemc-2.3.0 on MSVC-2010 (Windows 7)
I can compile and run the examples.
BUT when I write an own program it doesn’t work.
For example I wrote this simple program.
#include "systemc.h"#define WIDTH 4
SC_MODULE(adder) {
sc_in<sc_uint<WIDTH> > a, b; sc_out<sc_uint<WIDTH> > sum;
void do_add() { sum.write(a.read() + b.read()) }
SC_CTOR(adder) { SC_METHOD(do_add); sensitive << a << b; }
};
systemc.lib(sc_main_main.obj) : error LNK2019: unresolved external symbol > _sc_main referenced in function _sc_elab_and_sim > Debug/addieren.exe : fatal error LNK1120: 1 unresolved externals
It seems that the compiler can’t find systemc.lib, but I have add additional libraries in the properties and set the environment variable.
I checked it many times but I always got the above-mentioned messages.
Can you help me?
Thanks in advance.
Regards,
Aydin
Uni Bochum