Re: [OpenSIPStack] MFC/WTL application linker errors. Cant link to opensipstack.lib. Help.
Brought to you by:
joegenbaclor
From: Ilian J. C. P. <ip...@so...> - 2007-08-13 05:20:43
|
bart, Before you send out anything, have you seen the reference MFC app? It's available in atlsip\ossphone\vc80-mfc\. Also you may have to add the following lines in your app header file (i.e. the OpenSIPStack Start - End block): class COSSPhoneMFCApp : public CWinApp { public: /**** OpenSIPStack Start ****/ class PWLibProcess : public PProcess { PCLASSINFO(PWLibProcess, PProcess); void Main() { } } pwlibProcess; /**** OpenSIPStack End ****/ COSSPhoneMFCApp(); // Overrides public: virtual BOOL InitInstance(); // Implementation DECLARE_MESSAGE_MAP() }; If this doesn't work, update me on this thread and I'll see what I can do... - Ilian bart wrote: > Steps to reproduce the problem. > 1. Create a dialog only mfc aplication. No special options > 2. In dialog header file - #include "SoftPhoneInterface.h" > 3. In dialog header file - SF::SoftPhoneInterface sf; > 4. link with library. > > ps - can i send my folder to someone ( i promise to compress :-) ) > > Both Library and my softphone attempt set to Multi-threaded Debug (/MTd) > > Compiler Options: > /Od /I "C:\voip\osSphn\include" /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "_MBCS" /Gm /EHsc /RTC1 /MTd /Yu"stdafx.h" /Fp"Debug\osSphn.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /nologo /c /Wp64 /ZI /TP /errorReport:prompt > > > Linker Options: > /OUT:"C:\voip\osSphn\Debug\osSphn.exe" /INCREMENTAL /NOLOGO /LIBPATH:"C:\voip\osSphn\lib" /MANIFEST /MANIFESTFILE:"Debug\osSphn.exe.intermediate.manifest" /NODEFAULTLIB:"libc.lib libcmtd.lib MSVCRTD" /DELAYLOAD:"OleAcc.dll" /DEBUG /PDB:"c:\voip\osSphn\debug\osSphn.pdb" /SUBSYSTEM:WINDOWS /MACHINE:X86 /ERRORREPORT:PROMPT opensipstackd.lib DelayImp.lib > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > |