Jump to content
ViVo

colossal LNK2001 & LNK2019 errors

Recommended Posts

Hi,

I use systemc on win7-Visual2012. it seems that i get large number of LNK2001 & LNK2019 errors.

i rechecked, systemc.lib in place, include dir & include lib are in order. here is sample of it:

1>  Generating Code...
1>mult_unit.obj : error LNK2001: unresolved external symbol "public: __thiscall sc_core::sc_simcontext::sc_simcontext(void)" (??0sc_simcontext@sc_core@@QAE@XZ)
1>sqrt_unit.obj : error LNK2019: unresolved external symbol "public: __thiscall sc_core::sc_simcontext::sc_simcontext(void)" (??0sc_simcontext@sc_core@@QAE@XZ) referenced in function "public: void __thiscall std::_Container_base12::_Orphan_all(void)" (?_Orphan_all@_Container_base12@std@@QAEXXZ)
1>s_c_unit.obj     : error LNK2001: unresolved external symbol "public: __thiscall sc_core::sc_simcontext::sc_simcontext(void)" (??0sc_simcontext@sc_core@@QAE@XZ)
1>tb.obj     : error LNK2001: unresolved external symbol "public: __thiscall sc_core::sc_simcontext::sc_simcontext(void)" (??0sc_simcontext@sc_core@@QAE@XZ)
1>awgn.obj     : error LNK2001: unresolved external symbol "public: __thiscall sc_core::sc_simcontext::sc_simcontext(void)" (??0sc_simcontext@sc_core@@QAE@XZ)
1>cnct_unit.obj : error LNK2001: unresolved external symbol "public: __thiscall sc_core::sc_simcontext::sc_simcontext(void)" (??0sc_simcontext@sc_core@@QAE@XZ)
1>log_unit.obj     : error LNK2001: unresolved external symbol "public: __thiscall sc_core::sc_simcontext::sc_simcontext(void)" (??0sc_simcontext@sc_core@@QAE@XZ)
1>main.obj     : error LNK2001: unresolved external symbol "public: __thiscall sc_core::sc_simcontext::sc_simcontext(void)" (??0sc_simcontext@sc_core@@QAE@XZ)
1>s_c_unit.obj     : error LNK2001: unresolved external symbol "void __cdecl sc_core::wait(class sc_core::sc_simcontext *)" (?wait@sc_core@@YAXPAVsc_simcontext@1@@Z)
1>tb.obj     : error LNK2019: unresolved external symbol "void __cdecl sc_core::wait(class sc_core::sc_simcontext *)" (?wait@sc_core@@YAXPAVsc_simcontext@1@@Z) referenced in function "public: __thiscall sc_dt::sc_uint<32>::sc_uint<32>(int)" (??0?$sc_uint@$0CA@@sc_dt@@QAE@H@Z)
1>awgn.obj     : error LNK2001: unresolved external symbol "void __cdecl sc_core::wait(class sc_core::sc_simcontext *)" (?wait@sc_core@@YAXPAVsc_simcontext@1@@Z)
1>log_unit.obj     : error LNK2001: unresolved external symbol "void __cdecl sc_core::wait(class sc_core::sc_simcontext *)" (?wait@sc_core@@YAXPAVsc_simcontext@1@@Z)
1>mult_unit.obj : error LNK2001: unresolved external symbol "void __cdecl sc_core::wait(class sc_core::sc_simcontext *)" (?wait@sc_core@@YAXPAVsc_simcontext@1@@Z)
1>sqrt_unit.obj : error LNK2001: unresolved external symbol "void __cdecl sc_core::wait(class sc_core::sc_simcontext *)" (?wait@sc_core@@YAXPAVsc_simcontext@1@@Z)
1>awgn.obj     : error LNK2019: unresolved external symbol "void __cdecl sc_core::sc_set_location(char const *,int,class sc_core::sc_simcontext *)" (?sc_set_location@sc_core@@YAXPBDHPAVsc_simcontext@1@@Z) referenced in function "public: void __thiscall awgn::thread0(void)" (?thread0@awgn@@QAEXXZ)
1>tb.obj     : error LNK2001: unresolved external symbol "void __cdecl sc_core::sc_set_location(char const *,int,class sc_core::sc_simcontext *)" (?sc_set_location@sc_core@@YAXPBDHPAVsc_simcontext@1@@Z)
1>mult_unit.obj : error LNK2001: unresolved external symbol "public: __thiscall sc_core::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>(enum sc_core::sc_writer_policy)" (??0?$sc_api_version_2_3_1@$1?SC_DISABLE_VIRTUAL_BIND_UNDEFINED_@sc_core@@3HB@sc_core@@QAE@W4sc_writer_policy@1@@Z)
1>sqrt_unit.obj : error LNK2001: unresolved external symbol "public: __thiscall sc_core::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>(enum sc_core::sc_writer_policy)" (??0?$sc_api_version_2_3_1@$1?SC_DISABLE_VIRTUAL_BIND_UNDEFINED_@sc_core@@3HB@sc_core@@QAE@W4sc_writer_policy@1@@Z)
1>s_c_unit.obj     : error LNK2019: unresolved external symbol "public: __thiscall sc_core::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>(enum sc_core::sc_writer_policy)" (??0?$sc_api_version_2_3_1@$1?SC_DISABLE_VIRTUAL_BIND_UNDEFINED_@sc_core@@3HB@sc_core@@QAE@W4sc_writer_policy@1@@Z) referenced in function "public: void __thiscall std::_String_alloc<0,struct std::_String_base_types<char,class std::allocator<char> > >::_Free_proxy(void)" (?_Free_proxy@?$_String_alloc@$0A@U?$_String_base_types@DV?$allocator@D@std@@@std@@@std@@QAEXXZ)
1>tb.obj     : error LNK2001: unresolved external symbol "public: __thiscall sc_core::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>(enum sc_core::sc_writer_policy)" (??0?$sc_api_version_2_3_1@$1?SC_DISABLE_VIRTUAL_BIND_UNDEFINED_@sc_core@@3HB@sc_core@@QAE@W4sc_writer_policy@1@@Z)
1>awgn.obj     : error LNK2001: unresolved external symbol "public: __thiscall sc_core::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>(enum sc_core::sc_writer_policy)" (??0?$sc_api_version_2_3_1@$1?SC_DISABLE_VIRTUAL_BIND_UNDEFINED_@sc_core@@3HB@sc_core@@QAE@W4sc_writer_policy@1@@Z)
1>cnct_unit.obj : error LNK2001: unresolved external symbol "public: __thiscall sc_core::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>(enum sc_core::sc_writer_policy)" (??0?$sc_api_version_2_3_1@$1?SC_DISABLE_VIRTUAL_BIND_UNDEFINED_@sc_core@@3HB@sc_core@@QAE@W4sc_writer_policy@1@@Z)
1>log_unit.obj     : error LNK2001: unresolved external symbol "public: __thiscall sc_core::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>(enum sc_core::sc_writer_policy)" (??0?$sc_api_version_2_3_1@$1?SC_DISABLE_VIRTUAL_BIND_UNDEFINED_@sc_core@@3HB@sc_core@@QAE@W4sc_writer_policy@1@@Z)
1>main.obj     : error LNK2001: unresolved external symbol "public: __thiscall sc_core::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_1<&int const sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>(enum sc_core::sc_writer_policy)" (??0?$sc_api_version_2_3_1@$1?SC_DISABLE_VIRTUAL_BIND_UNDEFINED_@sc_core@@3HB@sc_core@@QAE@W4sc_writer_policy@1@@Z)
1>mult_unit.obj : error LNK2001: unresolved external symbol "protected: void __thiscall sc_core::sc_port_base::report_error(char const *,char const *)const " (?report_error@sc_port_base@sc_core@@IBEXPBD0@Z)
 

it goes on and on..

hope anyone can give me an idea...

V

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

×