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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...