|
RE: CVS Compilation under VS.net 2003: msg#00162video.blender.devel
The problem occurs with the lines that reference std::cout. error: libcpmtd.lib(xmutex.obj) : error LNK2005: "public: void __thiscall std::_Mutex::_Lock(void)" (?_Lock@_Mutex@std@@QAEXXZ) already defined in PHY_Sumo.lib(SM_Object.obj) I figured out a fix for this without commenting out the source: If you right click on the file SM_Object.cpp and go to properties. Under C/C++ -> Code Generation -> Runtime Library. Select Multithreaded (/MT) instead of single threaded. -----Original Message----- From: bf-committers-admin@xxxxxxxxxxx [mailto:bf-committers-admin@xxxxxxxxxxx]On Behalf Of Nathan Letwory Sent: Friday, April 23, 2004 3:54 AM To: bf-committers@xxxxxxxxxxx Subject: Re: [Bf-committers] CVS Compilation under VS.net 2003 Interesting that with the same compiler, but compiled from SCons there is no problem with Mutex::Lock. AFAICS there is the same libraries in- and excluded as with the project files. /Nathan Nicolas Cannasse wrote: >>Which C++ library? STL is already included and the game engine makes >>extensive use of it. >> >>Kester >> >>On Friday 23 April 2004 01:32, Nicolas Cannasse wrote: >> >>>There is several std:: calls that can easily be replaced (two std::swap > > and > >>>one std::copy). They are forcing the include of some C++ library that is >>>not compatible with the one used by other projects and araise conflicts >>>when linking. In general, avoiding std:: calls is good porting practice >>>since the MS STL is not really compliant. > > > I'm not really sure since I'm not expert in C++ libs tricks. > The only things I can tell : > - when I linked, there was a conflict about Mutex::Lock between an MS lib > (libcmtd.lib or something like that) and PHY_Sumo/SM_Object.cpp > - I looked at the sources and there was no Mutex::Lock so I assumed there > were imported as the same time as std:: namespace > - I replaced the 3 calls to std:: by C ANSI calls ( one memcpy and 2 manual > pointer swaps ) and it worked. > > Regards, > Nicolas Cannasse _______________________________________________ Bf-committers mailing list Bf-committers@xxxxxxxxxxx http://www.blender.org/mailman/listinfo/bf-committers |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Python changes: 00162, Michael Velikanje |
|---|---|
| Next by Date: | Speakers pool: 00162, Ton Roosendaal |
| Previous by Thread: | Re: CVS Compilation under VS.net 2003i: 00162, Nathan Letwory |
| Next by Thread: | Oops Schematic Organization: 00162, jeremy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |