I am new to SystemC and I just compiled it for using it with VS2010 using this tutorial. But when I tried to debug the following program:
#include <systemc.h>
SC_MODULE (systemcTest) {
SC_CTOR (systemcTest) {
}
void say_hello() {
cout << "Hello World.\n";
}
};
int sc_main(int argc, char* argv[]) {
systemcTest hello("HELLO");
hello.say_hello();
return(0);
}
I got 51 errors similar to the following error:
error LNK2005: "public: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)" (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already defined in SystemC.lib(sc_simcontext.obj) \msvcprtd.lib(MSVCP100D.dll)
Most were related to msvcprtd.lib, libcmtd.lib. How to solve this issue ?