project management with pre-compiled headers and tr1
project management with pre-compiled headers and tr1
- Subject: project management with pre-compiled headers and tr1
- From: Tobias Ford <email@hidden>
- Date: Fri, 24 Nov 2006 21:19:21 -0600
This is how the project is set up for building our client application
in our suite of applications:
SharedEngine static lib
ClientEngine static lib
SharedGame static lib
ClientGame static lib
Client application
TestSharedEngine application
Each lib has a file (First<Shared/Client/Server><Engine/Game>.h)
which is the pre-compiled header under win32. I'm trying to include
these .h as the pre-compiled headers for each of their corresponding
libs.
The problem that I'm running into is that in our FirstSharedEngine.h
we are promoting the tr1 functionality into the std namespace as such:
namespace std
{
using tr1::bad_weak_ptr;
using tr1::shared_ptr;
using tr1::static_pointer_cast;
using tr1::dynamic_pointer_cast;
using tr1::const_pointer_cast;
using tr1::weak_ptr;
using tr1::enable_shared_from_this;
using tr1::mem_fn;
}
Also, All headers have include guards to avoid multiple includes.
This works great without pre-compiling the headers. But as soon as I
include the First*.h into the pre-compiled header it generates the
warning "multiple definitions of symbol std::tr1::placeholders::
(anonymous namespace)::_*" with * being a digit from 0-10, which is a
confusing error.
Has anyone seen this and how to fix it. Or does anyone have a better
idea of how to approach this, project wise? I imagine I'm just
checking the correct boxes.
Thanks in advance.
-------------------
Tobias Ford...
tobias1482 'at' mac.com
tford 'at' spacetimestudios.com
-------------------
Sr Programmer @ space time studios for a generic space game mmo
"The Batman is Muhhammed Ali -- Jim Brown -- Shaft -- an' Super-Fly
all rolled into one!" -- Batman #250 by Frank Robbins
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden