Boost logo

Boost Users :

From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2005-11-09 09:01:55


"joel" <joel.szymanski_at_[hidden]> wrote in message
news:dkrfot$d8c$1_at_sea.gmane.org...
>I have just "demo_xml" serialisation test with "StdAfx.h" precompilated
>header.

Not sure what you mean here. Did you add '#include "stdafx.h"' to the
demo_xml.cpp?

> VC7.1 reply :
>
> nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator
> new(unsigned int)" (??2_at_YAPAXI@Z) déjà défini(e) dans
> libcpmtd.lib(newop.obj)

Sounds like you're linking inconsistent versions of the libs.

>
> It seems that boost libs is defining new operator as nafxcwd.lib from
> microsoft.
>
> Does anyone succeed to use boost libs with "stdafx" libs ?

I've not heard of stdafx libs, but yes many people succesfully use boost
libs with VC7.1 win32, and MFC applications.

Jeff Flinn


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net