[omniORB] Linker errors LNK1169(multiple defined symbols)
Mohan
rmohan@ice-com.com
Tue Jul 23 09:18:00 2002
H Ulf,
In fact the option MD is already exists in my make file. The problem is with
a library nafxcw.lib(MFC specific) as I try to use some of the mfc classes
such as CString in a SDK based application. Hence some of the symbols like
new and delete are existing in 2 different libraries and having conflict. I
am sorry for placing this Q here as this is related to vc++ and nothing to
do with ORB. Earlier I thaught it was having conflict with omni libraries.
Thanks,
Ram
----- Original Message -----
From: "Ulf Stoermer" <kz_ulf@emi.yamaha.co.jp>
To: "Mohan" <rmohan@ice-com.com>
Sent: Tuesday, July 23, 2002 1:35 PM
Subject: RE: [omniORB] Linker errors LNK1169(multiple defined symbols)
> Hi Mohan,
>
> since OmniORB is inherently multithreaded
> also your VC project has to be multithreaded
> and thus be linked to the multithreaded MS libraries.
> In Visual Studio check under the menu Project/Settings...
> In the dialog box choose the C/C++ tab and you will
> see on the bottom an edit box with the Project Options.
> Most likely you will find there one option "/ML" or "/MLd".
> This tells the compiler that your project is single threaded.
> Change this to "/MD" or "/MDd" and recompile all.
> That should fix your problem.
>
> Cheers
>
> Ulf
>
>
> > -----Original Message-----
> > From: omniorb-list-admin@realvnc.com
> > [mailto:omniorb-list-admin@realvnc.com]On Behalf Of Mohan
> > Sent: Tuesday, 23 July 2002 4:38 PM
> > To: omniorb-list@realvnc.com
> > Subject: [omniORB] Linker errors LNK1169(multiple defined symbols)
> >
> >
> > Hi All,
> >
> > When I try to compile and link my code with omniORB3 that was built
using
> > vc++6.0 compiler I am getting LNK1169 error
> > the message is
> > operator new() already defined in msvcrt.lib
> > operator delete already defined in msvcrt.lib
> >
> > when I looked in MSDN for help regarding this problem, I found
> > the following
> > information
> >
> > "The most common cause of this error is accidentally linking with both
the
> > single-threaded and multithreaded libraries. Ensure that the application
> > project file includes only the appropriate libraries and that any
> > third-party libraries have appropriately created single-threaded or
> > multithreaded versions."
> >
> > my question is how that how do I know with what option (single threaded
or
> > multi threaded) does omniORB linked with.
> > Can someone suggest me what exactly I have to do to comeout of this
linker
> > error.
> >
> > Thanks,
> > Ram
> >
> >
> >
> > _______________________________________________
> > omniORB-list mailing list
> > omniORB-list@realvnc.com
> > http://www.realvnc.com/mailman/listinfo/omniorb-list
> >
>
>