Thread: [OpenSIPStack] MFC/WTL application linker errors. Cant link to opensipstack.lib. Help.
Brought to you by:
joegenbaclor
From: bart <ope...@op...> - 2007-08-10 13:06:46
|
I am trying to create a softphone. First I tried with MFC, imported SoftPhoneInterface.h and added opensipstackd.lib as an additional library. Had too many errors (over 500). I then tried a WTL application with same result. I can seem to configure the linker to ignore the relevant libraries. I am using VS2005. This is the linker command line from the project property pages(for the WTL attempt): /OUT:"Debug\osShpnWtl.exe" /INCREMENTAL /NOLOGO /MANIFEST /MANIFESTFILE:"Debug\osShpnWtl.exe.intermediate.manifest" /NODEFAULTLIB:"libc.lib" /DEBUG /PDB:"c:\voip\osShpnWtl\osShpnWtl\Debug\osShpnWtl.pdb" /SUBSYSTEM:WINDOWS /MACHINE:X86 /ERRORREPORT:PROMPT C:\voip\osShpnWtl\lib\opensipstackd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Below is a very short snip of the kind of error I get: - 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: virtual __thiscall std::basic_ios<char,struct std::char_traits<char> >::~basic_ios<char,struct std::char_traits<char> >(void)" (??1?$basic_ios@DU?$char_traits@D@std@@@std@@UAE@XZ) already defined in libcpmtd.lib(cerr.obj) 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in libcpmtd.lib(cerr.obj) 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in libcpmtd.lib(cerr.obj) 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) already defined in libcpmtd.lib(cerr.obj) 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)" (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already defined in libcpmtd.lib(cerr.obj) 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: static bool __cdecl std::char_traits<char>::eq_int_type(int const &,int const &)" (?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z) already defined in libcpmtd.lib(cerr.obj) 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: static int __cdecl std::char_traits<char>::eof(void)" (?eof@?$char_traits@D@std@@SAHXZ) already defined in libcpmtd.lib(cerr.obj) 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: static unsigned int __cdecl std::char_traits<char>::length(char const *)" (?length@?$char_traits@D@std@@SAIPBD@Z) already defined in libcpmtd.lib(cerr.obj) 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in libcpmtd.lib(xlock.obj) 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined in libcpmtd.lib(xlock.obj) 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "void __cdecl std::_Debug_message(unsigned short const *,unsigned short const *,unsigned int)" (?_Debug_message@std@@YAXPBG0I@Z) already defined in libcpmtd.lib(stdthrow.obj) 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: virtual __thiscall std::basic_ostream<char,struct std::char_traits<char> >::~basic_ostream<char,struct std::char_traits<char> >(void)" (??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UAE@XZ) already defined in libcpmtd.lib(cerr.obj) 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_ostream<char,struct std::char_traits<char> >::basic_ostream<char,struct std::char_traits<char> >(class std::basic_streambuf<char,struct std::char_traits<char> > *,bool)" (??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z) already defined in libcpmtd.lib(cerr.obj) 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "protected: __thiscall std::basic_ios<char,struct std::char_traits<char> >::basic_ios<char,struct std::char_traits<char> >(void)" (??0?$basic_ios@DU?$char_traits@D@std@@@std@@IAE@XZ) already defined in libcpmtd.lib(cerr.obj) |
From: Joegen E. B. <joe...@gm...> - 2007-08-10 13:38:26
|
Try /FORCE:MULTIPLE switch in the linker flags bart wrote: > I am trying to create a softphone. First I tried with MFC, imported SoftPhoneInterface.h and added opensipstackd.lib as an additional library. Had too many errors (over 500). > > I then tried a WTL application with same result. I can seem to configure the linker to ignore the relevant libraries. > > I am using VS2005. This is the linker command line from the project property pages(for the WTL attempt): > > /OUT:"Debug\osShpnWtl.exe" /INCREMENTAL /NOLOGO /MANIFEST /MANIFESTFILE:"Debug\osShpnWtl.exe.intermediate.manifest" /NODEFAULTLIB:"libc.lib" /DEBUG /PDB:"c:\voip\osShpnWtl\osShpnWtl\Debug\osShpnWtl.pdb" /SUBSYSTEM:WINDOWS /MACHINE:X86 /ERRORREPORT:PROMPT C:\voip\osShpnWtl\lib\opensipstackd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib > > Below is a very short snip of the kind of error I get: - > > 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: virtual __thiscall std::basic_ios<char,struct std::char_traits<char> >::~basic_ios<char,struct std::char_traits<char> >(void)" (??1?$basic_ios@DU?$char_traits@D@std@@@std@@UAE@XZ) already defined in libcpmtd.lib(cerr.obj) > 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in libcpmtd.lib(cerr.obj) > 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in libcpmtd.lib(cerr.obj) > 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) already defined in libcpmtd.lib(cerr.obj) > 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)" (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already defined in libcpmtd.lib(cerr.obj) > 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: static bool __cdecl std::char_traits<char>::eq_int_type(int const &,int const &)" (?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z) already defined in libcpmtd.lib(cerr.obj) > 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: static int __cdecl std::char_traits<char>::eof(void)" (?eof@?$char_traits@D@std@@SAHXZ) already defined in libcpmtd.lib(cerr.obj) > 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: static unsigned int __cdecl std::char_traits<char>::length(char const *)" (?length@?$char_traits@D@std@@SAIPBD@Z) already defined in libcpmtd.lib(cerr.obj) > 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in libcpmtd.lib(xlock.obj) > 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined in libcpmtd.lib(xlock.obj) > 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "void __cdecl std::_Debug_message(unsigned short const *,unsigned short const *,unsigned int)" (?_Debug_message@std@@YAXPBG0I@Z) already defined in libcpmtd.lib(stdthrow.obj) > 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: virtual __thiscall std::basic_ostream<char,struct std::char_traits<char> >::~basic_ostream<char,struct std::char_traits<char> >(void)" (??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UAE@XZ) already defined in libcpmtd.lib(cerr.obj) > 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_ostream<char,struct std::char_traits<char> >::basic_ostream<char,struct std::char_traits<char> >(class std::basic_streambuf<char,struct std::char_traits<char> > *,bool)" (??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z) already defined in libcpmtd.lib(cerr.obj) > 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "protected: __thiscall std::basic_ios<char,struct std::char_traits<char> >::basic_ios<char,struct std::char_traits<char> >(void)" (??0?$basic_ios@DU?$char_traits@D@std@@@std@@IAE@XZ) already defined in libcpmtd.lib(cerr.obj) > > ------------------------------------------------------------------------- > 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 > > |
From: bart <ope...@op...> - 2007-08-10 20:21:24
|
I spotted that when i examined atlsip linker settings. When i tried that, all that happened was that - all errors were converted to warnings and the finished application wouldnt run :-( |
From: Ilian J. C. P. <ip...@so...> - 2007-08-13 02:11:41
|
Hi, Also make sure that OpenSIPStack and your softphone project have the same Runtime Library setting (Project Properties -> Configuration properties -> C++ -> Code Generation -> Runtime Library). If you're using "Multi-threaded" for your softphone, OpenSIPStack's should be set likewise. - Ilian bart wrote: > I spotted that when i examined atlsip linker settings. When i tried that, all that happened was that - all errors were converted to warnings and the finished application wouldnt run :-( > > ------------------------------------------------------------------------- > 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 > > > |
From: bart <ope...@op...> - 2007-08-13 04:57:35
|
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 |
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 > > > |
From: bart <ope...@op...> - 2007-08-13 06:24:32
|
I modified as you suggested - that made no difference. Yes, I have seen the ossphone but it is a Windows Forms.net application linking to atlsip.dll. Mine is a pure link to SF::SoftPhoneInterface. |
From: Ilian J. C. P. <ip...@so...> - 2007-08-13 06:57:38
|
hi, *THERE IS* a reference MFC app which does not link to atlsip.dll. It's under *vc80-mfc*. Also since you're using "Multithread Debug", be sure to "Use MFC in a Static library" and remove *libcmtd.lib* from Linker->Input->Ignore Specific Library (i.e. /NODEFAULTLIB:). This works fine for me. - Ilian bart wrote: > I modified as you suggested - that made no difference. Yes, I have seen the ossphone but it is a Windows Forms.net application linking to atlsip.dll. Mine is a pure link to SF::SoftPhoneInterface. > > ------------------------------------------------------------------------- > 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 > > > |
From: bart <ope...@op...> - 2007-08-13 08:56:29
|
have done exactly as you say with no luck. Where did you get your source. I downloaded from the website. I will download again, maintain directory structure and try again. That sample is great (only if i could get that working). Please escuse me as I cry.................... I despair, I despair. |
From: Ilian J. C. P. <ip...@so...> - 2007-08-13 09:02:17
|
you can get the latest code from CVS. the instructions are in http://www.opensipstack.org/cvs.html. then download the atlsip project. bart wrote: > have done exactly as you say with no luck. Where did you get your source. I downloaded from the website. > > I will download again, maintain directory structure and try again. That sample is great (only if i could get that working). > > Please escuse me as I cry.................... > > I despair, I despair. > > ------------------------------------------------------------------------- > 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 > > > |
From: bart <ope...@op...> - 2007-08-13 10:22:25
|
Can you tell me the url for tortoise svn, please? That is why I didnt use the cvs in the first place |
From: Ilian J. C. P. <ip...@so...> - 2007-08-13 10:29:56
|
you will need a cvs client to download the code. a quick google will tell you where tortoise cvs is located. anyway, here it is: http://www.tortoisecvs.org/download.shtml bart wrote: > Can you tell me the url for tortoise svn, please? That is why I didnt use the cvs in the first place > > ------------------------------------------------------------------------- > 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 > > > |
From: bart <ope...@op...> - 2007-08-13 12:13:29
|
no, whew - I am not that bad, been using tortoise subversion for a loooong time. The question is this:- HAVE YOU TRIED IT? what url did you use? I have tried "any-which way" and cant get to it. Try using the repo browser in tortoise. I am now installing cvs on my debian !!! |
From: Ilian J. C. P. <ip...@so...> - 2007-08-13 12:29:24
|
bart wrote: > no, whew - I am not that bad, been using tortoise subversion for a loooong time. > Use *Tortoise CVS*. Not Tortoise SVN. Then do a checkout with the following CVSROOT: :pserver:ano...@op...:/cvsroot/opensipstack Then enter a blank password. - Ilian > The question is this:- HAVE YOU TRIED IT? what url did you use? I have tried "any-which way" and cant get to it. Try using the repo browser in tortoise. > > I am now installing cvs on my debian !!! > > ------------------------------------------------------------------------- > 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 > > > |
From: Ilian J. C. P. <ip...@so...> - 2007-08-13 12:30:38
|
also be sure to set the appropriate project to checkout (e.g. opensipstack, atlsip). Ilian Jeri C. Pinzon wrote: > bart wrote: > >> no, whew - I am not that bad, been using tortoise subversion for a loooong time. >> >> > Use *Tortoise CVS*. Not Tortoise SVN. Then do a checkout with the > following CVSROOT: > :pserver:ano...@op...:/cvsroot/opensipstack > > Then enter a blank password. > > - Ilian > >> The question is this:- HAVE YOU TRIED IT? what url did you use? I have tried "any-which way" and cant get to it. Try using the repo browser in tortoise. >> >> I am now installing cvs on my debian !!! >> >> ------------------------------------------------------------------------- >> 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 >> >> >> >> > > > ------------------------------------------------------------------------- > 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 > > > |
From: bart <ope...@op...> - 2007-08-13 14:53:29
|
OK, what I have done so far. (A) Downloaded from cvs using debian linux. - both opensipstack and atlsip. (B) copied the folders to my desktop. (C) Compiled opensipstack (no errors - 4 linker warnings) 1>Creating library... 1>shttpsvc.obj : warning LNK4221: no public symbols found; archive member will be inaccessible 1>pssl.obj : warning LNK4221: no public symbols found; archive member will be inaccessible 1>g729codec.obj : warning LNK4221: no public symbols found; archive member will be inaccessible 1>g7231codec.obj : warning LNK4221: no public symbols found; archive member will be inaccessible 1>Build log was saved at "file://c:\Users\bart\Desktop\opensipstack\Release\BuildLog.htm" 1>OpenSIPStack - 0 error(s), 4 warning(s) ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== (D) Opened ATLSIP solution and compiled (warnings below) 1>Linking... 1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification 1> Creating library Debug/ATLSIP.lib and object Debug/ATLSIP.exp 1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library 1>Embedding manifest... 1>Performing registration 1>Build log was saved at "file://c:\Users\bart\Desktop\atlsip\Debug\BuildLog.htm" 1>ATLSIP - 0 error(s), 2 warning(s) ========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ========== (E) navigated to atlsip\OSSPhone\vc80-mfc and opened OSSPhone (MFC).vcproj. Compiled but noticed that it wasnt linking to openstackd.lib. so.. (F) slightly modified link options by - project - properties - linker - input - additional dependencies and inserted direct path to library. Linker settings below /OUT:"C:\Users\bart\Desktop\atlsip\OSSPhone\vc80-mfc\Debug\OSSPhone (MFC).exe" /INCREMENTAL /NOLOGO /MANIFEST /MANIFESTFILE:"Debug\OSSPhone (MFC).exe.intermediate.manifest" /NODEFAULTLIB:"libcmtd.lib" /NODEFAULTLIB:"libc.lib" /DEBUG /PDB:"c:\Users\bart\Desktop\atlsip\OSSPhone\vc80-mfc\Debug\OSSPhone (MFC).pdb" /SUBSYSTEM:WINDOWS /MACHINE:X86 /ERRORREPORT:PROMPT C:\Users\bart\Desktop\opensipstack\lib\opensipstackd.lib These are the errors that resulted. 1>Linking... 1>libcmt.lib(sprintf.obj) : error LNK2005: _sprintf already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(setlocal.obj) : error LNK2005: __configthreadlocale already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(printf.obj) : error LNK2005: _printf already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(crt0dat.obj) : error LNK2005: __cexit already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(mlock.obj) : error LNK2005: __unlock already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(mlock.obj) : error LNK2005: __lock already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(dosmap.obj) : error LNK2005: __errno already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(_file.obj) : error LNK2005: ___iob_func already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(calloc.obj) : error LNK2005: _calloc already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrtd.lib(cinitexe.obj) 1>libcmt.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrtd.lib(cinitexe.obj) 1>libcmt.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrtd.lib(cinitexe.obj) 1>libcmt.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrtd.lib(cinitexe.obj) 1>libcmt.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(invarg.obj) : error LNK2005: __invoke_watson already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(invarg.obj) : error LNK2005: __invalid_parameter already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(stricmp.obj) : error LNK2005: __stricmp already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(errmode.obj) : error LNK2005: ___set_app_type already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(getenv.obj) : error LNK2005: _getenv already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(tolower.obj) : error LNK2005: _tolower already defined in msvcrtd.lib(MSVCR80D.dll) 1>libcmt.lib(strnicmp.obj) : error LNK2005: __strnicmp already defined in msvcrtd.lib(MSVCR80D.dll) 1>msvcrtd.lib(MSVCR80D.dll) : error LNK2005: __setmbcp already defined in libcmt.lib(mbctype.obj) 1>LINK : warning LNK4098: defaultlib 'msvcrtd.lib' conflicts with use of other libs; use /NODEFAULTLIB:library 1>msvcrtd.lib(cinitexe.obj) : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library 1>libcmt.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\Users\bart\Desktop\atlsip\OSSPhone\vc80-mfc\Debug\OSSPhone (MFC).exe : fatal error LNK1120: 1 unresolved externals 1>Build log was saved at "file://c:\Users\bart\Desktop\atlsip\OSSPhone\vc80-mfc\Debug\BuildLog.htm" 1>OSSPhone (MFC) - 31 error(s), 2 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Please see next post |
From: bart <ope...@op...> - 2007-08-13 15:02:11
|
atlsip\OSSPhone\vc80-mfc. This project really looks good. I would like to base my project around this. Could someone send me a VC8 project with the following structure. Project Directory ( containing solution) lib (containing opensipstack.lib + opensipstackd.lib) include (containing opensipstack includes) softphone (or project directory - containg VC generated files) This is default structure + lib and include directories. If this project contained the correct linker settings I will be on my way and will promise MaxBeers :-) Thanks bart |
From: Ilian J. C. P. <ip...@so...> - 2007-08-15 11:46:28
|
Hi bart, Sorry for the late response. I've added changes to the ossphone MFC project so you wouldn't have to deal with anything. It should build correctly with the default settings. Just get OpenSIPStack and ATLSIP code from CVS and put them in the same folder. Open the MFC project and then build. This should work fine. - Ilian bart wrote: > atlsip\OSSPhone\vc80-mfc. > > This project really looks good. I would like to base my project around this. Could someone send me a VC8 project with the following structure. > > Project Directory ( containing solution) > lib (containing opensipstack.lib + opensipstackd.lib) > include (containing opensipstack includes) > softphone (or project directory - containg VC generated files) > > This is default structure + lib and include directories. > > If this project contained the correct linker settings I will be on my way and will promise MaxBeers :-) > > Thanks > bart > > ------------------------------------------------------------------------- > 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 > > > |