[Freeswitch-users] error LNK2019: unresolved external symbol when building on x64 machine but not in Win32 machine

Frankie Yiu frankie.k.yiu at gmail.com
Fri Apr 29 14:19:41 MSD 2011


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 at 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 at 8 referenced in
function _mod_baw_load
1>mod_baw.obj : error LNK2019: unresolved external symbol
__imp__switch_event_get_body at 4 referenced in function
_Answered_Event_Callback
1>mod_baw.obj : error LNK2019: unresolved external symbol
__imp__switch_core_session_rwunlock at 4 referenced in function
_Answered_Event_Callback
1>mod_baw.obj : error LNK2019: unresolved external symbol
__imp__switch_ivr_record_session at 16 referenced in function
_Answered_Event_Callback
1>mod_baw.obj : error LNK2019: unresolved external symbol
__imp__switch_core_media_bug_add at 36 referenced in function
_Answered_Event_Callback
1>mod_baw.obj : error LNK2019: unresolved external symbol
__imp__switch_core_session_locate at 4 referenced in function
_Answered_Event_Callback
1>mod_baw.obj : error LNK2019: unresolved external symbol
__imp__switch_event_get_header at 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 at 4 referenced in
function _DataFrame_CallBack
1>mod_baw.obj : error LNK2019: unresolved external symbol
__imp__switch_core_media_bug_get_read_replace_frame at 4 referenced in function
_DataFrame_CallBack
1>mod_baw.obj : error LNK2019: unresolved external symbol
__imp__switch_core_session_get_uuid at 4 referenced in function
_DataFrame_CallBack
1>mod_baw.obj : error LNK2019: unresolved external symbol
__imp__switch_core_media_bug_get_session at 4 referenced in function
_DataFrame_CallBack
1>C:\SIPServices\freeswitch\Debug/mod/mod_baw.dll : fatal error LNK1120: 13
unresolved externals


Thanks,

Frankie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110429/b10aabf4/attachment.html 


More information about the FreeSWITCH-users mailing list