Re: [pjsip] Compiling PjSIP with runtime library Multi-threaded (/MT)

DC
David Clark
Fri, Oct 30, 2009 6:05 PM

Did you change the compilation method on all pjsip projects and your
application project.  They all have to agree or you run into problems at link.

At 10:19 AM 10/30/2009, sunil sarolkar wrote:

Hello, I compiled PjSIP with Run time library Multi-threaded Debug
DLL (/MDd) succesfully but could not compile it with runtime library
Multi-threaded (/MT) its givind error

Linking...
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _memchr already defined in
LIBCMT.lib(memchr.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _sprintf already defined in
LIBCMT.lib(sprintf.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: __snprintf already defined
in LIBCMT.lib(snprintf.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _strncpy already defined in
LIBCMT.lib(strncpy.obj)

Thanks for any clue


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Did you change the compilation method on all pjsip projects and your application project. They all have to agree or you run into problems at link. At 10:19 AM 10/30/2009, sunil sarolkar wrote: >Hello, I compiled PjSIP with Run time library Multi-threaded Debug >DLL (/MDd) succesfully but could not compile it with runtime library >Multi-threaded (/MT) its givind error > > >Linking... >MSVCRT.lib(MSVCR90.dll) : error LNK2005: _memchr already defined in >LIBCMT.lib(memchr.obj) >MSVCRT.lib(MSVCR90.dll) : error LNK2005: _sprintf already defined in >LIBCMT.lib(sprintf.obj) >MSVCRT.lib(MSVCR90.dll) : error LNK2005: __snprintf already defined >in LIBCMT.lib(snprintf.obj) >MSVCRT.lib(MSVCR90.dll) : error LNK2005: _strncpy already defined in >LIBCMT.lib(strncpy.obj) > >Thanks for any clue > > >_______________________________________________ >Visit our blog: http://blog.pjsip.org > >pjsip mailing list >pjsip@lists.pjsip.org >http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
PE
P.Muge Ersoy
Sat, Oct 31, 2009 10:26 AM

add the msvcrt to ignored libraries.
I did it like that and there is no problem.

On Fri, Oct 30, 2009 at 8:05 PM, David Clark vdc1048@tx.rr.com wrote:

Did you change the compilation method on all pjsip projects and your
application project.  They all have to agree or you run into problems at
link.

At 10:19 AM 10/30/2009, sunil sarolkar wrote:

Hello, I compiled PjSIP with Run time library Multi-threaded Debug DLL
(/MDd) succesfully but could not compile it with runtime library
Multi-threaded (/MT) its givind error

Linking...
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _memchr already defined in
LIBCMT.lib(memchr.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _sprintf already defined in
LIBCMT.lib(sprintf.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: __snprintf already defined in
LIBCMT.lib(snprintf.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _strncpy already defined in
LIBCMT.lib(strncpy.obj)

Thanks for any clue


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

*add the msvcrt to ignored libraries.* I did it like that and there is no problem. On Fri, Oct 30, 2009 at 8:05 PM, David Clark <vdc1048@tx.rr.com> wrote: > Did you change the compilation method on all pjsip projects and your > application project. They all have to agree or you run into problems at > link. > > > At 10:19 AM 10/30/2009, sunil sarolkar wrote: > >> Hello, I compiled PjSIP with Run time library Multi-threaded Debug DLL >> (/MDd) succesfully but could not compile it with runtime library >> Multi-threaded (/MT) its givind error >> >> >> Linking... >> MSVCRT.lib(MSVCR90.dll) : error LNK2005: _memchr already defined in >> LIBCMT.lib(memchr.obj) >> MSVCRT.lib(MSVCR90.dll) : error LNK2005: _sprintf already defined in >> LIBCMT.lib(sprintf.obj) >> MSVCRT.lib(MSVCR90.dll) : error LNK2005: __snprintf already defined in >> LIBCMT.lib(snprintf.obj) >> MSVCRT.lib(MSVCR90.dll) : error LNK2005: _strncpy already defined in >> LIBCMT.lib(strncpy.obj) >> >> Thanks for any clue >> >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
SS
sunil sarolkar
Sat, Oct 31, 2009 10:36 AM

Hello,
Actually David was right.. I didn't compiled PjSIP library using MT
settings

I did it, and its working now

Thanks

On Sat, Oct 31, 2009 at 3:56 PM, P.Muge Ersoy muge.ersoy@gmail.com wrote:

add the msvcrt to ignored libraries.
I did it like that and there is no problem.

On Fri, Oct 30, 2009 at 8:05 PM, David Clark vdc1048@tx.rr.com wrote:

Did you change the compilation method on all pjsip projects and your
application project.  They all have to agree or you run into problems at
link.

At 10:19 AM 10/30/2009, sunil sarolkar wrote:

Hello, I compiled PjSIP with Run time library Multi-threaded Debug DLL
(/MDd) succesfully but could not compile it with runtime library
Multi-threaded (/MT) its givind error

Linking...
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _memchr already defined in
LIBCMT.lib(memchr.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _sprintf already defined in
LIBCMT.lib(sprintf.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: __snprintf already defined in
LIBCMT.lib(snprintf.obj)
MSVCRT.lib(MSVCR90.dll) : error LNK2005: _strncpy already defined in
LIBCMT.lib(strncpy.obj)

Thanks for any clue


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hello, Actually David was right.. I didn't compiled PjSIP library using MT settings I did it, and its working now Thanks On Sat, Oct 31, 2009 at 3:56 PM, P.Muge Ersoy <muge.ersoy@gmail.com> wrote: > *add the msvcrt to ignored libraries.* > I did it like that and there is no problem. > > On Fri, Oct 30, 2009 at 8:05 PM, David Clark <vdc1048@tx.rr.com> wrote: > >> Did you change the compilation method on all pjsip projects and your >> application project. They all have to agree or you run into problems at >> link. >> >> >> At 10:19 AM 10/30/2009, sunil sarolkar wrote: >> >>> Hello, I compiled PjSIP with Run time library Multi-threaded Debug DLL >>> (/MDd) succesfully but could not compile it with runtime library >>> Multi-threaded (/MT) its givind error >>> >>> >>> Linking... >>> MSVCRT.lib(MSVCR90.dll) : error LNK2005: _memchr already defined in >>> LIBCMT.lib(memchr.obj) >>> MSVCRT.lib(MSVCR90.dll) : error LNK2005: _sprintf already defined in >>> LIBCMT.lib(sprintf.obj) >>> MSVCRT.lib(MSVCR90.dll) : error LNK2005: __snprintf already defined in >>> LIBCMT.lib(snprintf.obj) >>> MSVCRT.lib(MSVCR90.dll) : error LNK2005: _strncpy already defined in >>> LIBCMT.lib(strncpy.obj) >>> >>> Thanks for any clue >>> >>> >>> _______________________________________________ >>> Visit our blog: http://blog.pjsip.org >>> >>> pjsip mailing list >>> pjsip@lists.pjsip.org >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> >> >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >