Boost logo

Boost :

From: JOAQUIN LOPEZ MU?Z (joaquin_at_[hidden])
Date: 2004-07-29 13:37:24


I thought I'd bring this mail from the users list to your attention:

http://lists.boost.org/MailArchives/boost-users/msg07311.php

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo

Original message

To: boost-users_at_xxxxxxxxxxxxxxx
Subject: [Boost-users] Assign and MultiArray conflict with precompiledheaders
From: Bruno Martínez Aguerre <br1_at_xxxxxxxxxxxxxxx>
Date: Wed, 28 Jul 2004 16:49:42 -0300
Reply-to: boost-users_at_xxxxxxxxxxxxxxx
Sender: news <news_at_xxxxxxxxxxxxx>
User-agent: Opera M2/7.51 (Win32, build 3798)

--------------------------------------------------------------------------------
Hi.
I'm trying out the recently accepted Assign library, and also the MultiArray library, which is new to me. I'm in VC7.1, and using the post review version of Assign. Depending on the order I include the libraries in my precompiled header, the linker complains about double definition of MultiArray's extents object. Here are the files that reproduce the problem.

//stdafx.h
#pragma once
#include "boost/multi_array.hpp"
#include "boost/assign.hpp"

//main.cpp
#include "stdafx.h"
int main()
{
boost::multi_array<int, 2> t(boost::extents[3][4]);
}

I couldn't find relation between the two libraries.

Thanks in advance,
Bruno Martínez


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk