NickP
2006-02-10 15:03:49 UTC
Hi there,
I have a VC Win32 application compiling under VS.NET 2003 no problems,
but when attempting to compile under VS.NET 2005 I am recieving linker
problems. The only main difference between the 2 systems is that I am using
the latest platform SDK on the 2005 system in order to utilize the latest
DirectX (DirectShow) SDK.
Anyway, the linker error I'm recieving is
Error 79 error LNK2019: unresolved external symbol "wchar_t * __stdcall
_com_util::ConvertStringToBSTR(char const *)"
(?***@_com_util@@***@Z) referenced in function
"public: __thiscall _bstr_t::Data_t::Data_t(char const *)"
(??***@_bstr_t@@***@PBD@Z) MTDetector.obj
Error 80 error LNK2019: unresolved external symbol "char * __stdcall
_com_util::ConvertBSTRToString(wchar_t *)"
(?***@_com_util@@***@Z) referenced in function
"public: char const * __thiscall _bstr_t::Data_t::GetString(void)const "
(?***@Data_t@_bstr_t@@QBEPBDXZ) MTDetector.obj
Error 81 error LNK2001: unresolved external symbol "char * __stdcall
_com_util::ConvertBSTRToString(wchar_t *)"
(?***@_com_util@@***@Z) SrcFilter.obj
Error 82 error LNK2001: unresolved external symbol "char * __stdcall
_com_util::ConvertBSTRToString(wchar_t *)"
(?***@_com_util@@***@Z) TCSource.obj
Error 83 fatal error LNK1120: 2 unresolved externals Raptor - <filename>
I can't find any references to this call in any of my source code so I
can only presume that something else I am linking in is requiring this
reference?
The libraries I am including and also include in VS.NET 2003 which
compiles perfectly are...
comctl32.lib
ws2_32.lib
gdiplus.lib
winmm.lib
strmbase.lib
kernel32.lib
user32.lib
gdi32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
msimg32.lib
imagehlp.lib
msxml2.lib
wmvcore.lib
wininet.lib
rpcrt4.lib
What confuses me most is why this would work in 2003 and not 2005? Had
anyone else experienced this problem and have any kind of a resolve? Thanks
I'm eagerly awaiting some answer, cheers in advance!
Nick.
I have a VC Win32 application compiling under VS.NET 2003 no problems,
but when attempting to compile under VS.NET 2005 I am recieving linker
problems. The only main difference between the 2 systems is that I am using
the latest platform SDK on the 2005 system in order to utilize the latest
DirectX (DirectShow) SDK.
Anyway, the linker error I'm recieving is
Error 79 error LNK2019: unresolved external symbol "wchar_t * __stdcall
_com_util::ConvertStringToBSTR(char const *)"
(?***@_com_util@@***@Z) referenced in function
"public: __thiscall _bstr_t::Data_t::Data_t(char const *)"
(??***@_bstr_t@@***@PBD@Z) MTDetector.obj
Error 80 error LNK2019: unresolved external symbol "char * __stdcall
_com_util::ConvertBSTRToString(wchar_t *)"
(?***@_com_util@@***@Z) referenced in function
"public: char const * __thiscall _bstr_t::Data_t::GetString(void)const "
(?***@Data_t@_bstr_t@@QBEPBDXZ) MTDetector.obj
Error 81 error LNK2001: unresolved external symbol "char * __stdcall
_com_util::ConvertBSTRToString(wchar_t *)"
(?***@_com_util@@***@Z) SrcFilter.obj
Error 82 error LNK2001: unresolved external symbol "char * __stdcall
_com_util::ConvertBSTRToString(wchar_t *)"
(?***@_com_util@@***@Z) TCSource.obj
Error 83 fatal error LNK1120: 2 unresolved externals Raptor - <filename>
I can't find any references to this call in any of my source code so I
can only presume that something else I am linking in is requiring this
reference?
The libraries I am including and also include in VS.NET 2003 which
compiles perfectly are...
comctl32.lib
ws2_32.lib
gdiplus.lib
winmm.lib
strmbase.lib
kernel32.lib
user32.lib
gdi32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
msimg32.lib
imagehlp.lib
msxml2.lib
wmvcore.lib
wininet.lib
rpcrt4.lib
What confuses me most is why this would work in 2003 and not 2005? Had
anyone else experienced this problem and have any kind of a resolve? Thanks
I'm eagerly awaiting some answer, cheers in advance!
Nick.