error LNK2019: unresolved external symbol when building on x64 machine but not in Win32 machine
Hi there, I have a module written in c++ and it compiled and ran successfully on a 32 bit Windows Server 2003 machine with the Visual Studio 2008. However, when I compiled it on a x64 machine (Windows7 or Window Server) with Visual Studio 2008, I have the following external symbol errors. Does anyone have an idea why this is happening and how to fix it? Thank you. 1> Creating library Win32\Debug/mod_baw_2008.lib and object Win32\Debug/mod_baw_2008.exp 1>mod_baw.obj : error LNK2019: unresolved external symbol __imp__switch_event_bind@20 referenced in function _mod_baw_load 1>mod_baw.obj : error LNK2019: unresolved external symbol __imp__switch_log_printf referenced in function _mod_baw_load 1>mod_baw.obj : error LNK2019: unresolved external symbol __imp__switch_loadable_module_create_module_interface@8 referenced in function _mod_baw_load 1>mod_baw.obj : error LNK2019: unresolved external symbol __imp__switch_event_get_body@4 referenced in function _Answered_Event_Callback 1>mod_baw.obj : error LNK2019: unresolved external symbol __imp__switch_core_session_rwunlock@4 referenced in function _Answered_Event_Callback 1>mod_baw.obj : error LNK2019: unresolved external symbol __imp__switch_ivr_record_session@16 referenced in function _Answered_Event_Callback 1>mod_baw.obj : error LNK2019: unresolved external symbol __imp__switch_core_media_bug_add@36 referenced in function _Answered_Event_Callback 1>mod_baw.obj : error LNK2019: unresolved external symbol __imp__switch_core_session_locate@4 referenced in function _Answered_Event_Callback 1>mod_baw.obj : error LNK2019: unresolved external symbol __imp__switch_event_get_header@8 referenced in function _Answered_Event_Callback 1>mod_baw.obj : error LNK2019: unresolved external symbol __imp__switch_core_media_bug_get_write_replace_frame@4 referenced in function _DataFrame_CallBack 1>mod_baw.obj : error LNK2019: unresolved external symbol __imp__switch_core_media_bug_get_read_replace_frame@4 referenced in function _DataFrame_CallBack 1>mod_baw.obj : error LNK2019: unresolved external symbol __imp__switch_core_session_get_uuid@4 referenced in function _DataFrame_CallBack 1>mod_baw.obj : error LNK2019: unresolved external symbol __imp__switch_core_media_bug_get_session@4 referenced in function _DataFrame_CallBack 1>C:\SIPServices\freeswitch\Debug/mod/mod_baw.dll : fatal error LNK1120: 13 unresolved externals Thanks, Frankie
You're not linking against FreeSWITCHCore.lib-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/error-LNK2019-unresolved-exter... Sent from the freeswitch-users mailing list archive at Nabble.com.
participants (2)
-
Frankie Yiu
-
Jeff Lenk