I have a program which uses boost 1.33.1 and it works fine with gcc 4.1 however now that I want to compile with gcc 4.4 it get many errors. For example somewhere in the boost files, it says:
/opt/boost_1_33_1/boost/mpl/aux_/numeric_op.hpp: 250: error: expected unqualified-id before ‘:’ token
the code at that line is (note the second line): - #if !defined(BOOST_MPL_CFG_MSVC_ETI_BUG)
-
: AUX778076_OP_IMPL_NAME<
-
typename AUX778076_OP_TAG_NAME<N1>::type
-
, typename AUX778076_OP_TAG_NAME<N2>::type
-
>::template apply<N1,N2>::type
-
#else
-
: aux::msvc_eti_base< typename apply_wrap2<
-
AUX778076_OP_IMPL_NAME<
-
typename AUX778076_OP_TAG_NAME<N1>::type
-
, typename AUX778076_OP_TAG_NAME<N2>::type
-
>
-
, N1
-
, N2
-
>::type >::type
-
#endif
I know that boost 1.33.1 is old however I checked numeric_op.hpp in the latest boost release at http://svn.boost.org/svn/boost/trunk/boost/mpl/aux_/numeric_op.hpp and it is the same as before.
So any idea to solve that? thanks
5 3716 Banfa 9,065
Recognized Expert Moderator Expert
We don't want an example of the errors, we want the first error or given that this is a template issue the first 5 - 10 errors.
Once you have 1 error anything that follows is suspect because if may be on code that is correct but being interpreted incorrect because of that first error.
Also when you post code post the whole statement, what you have posted looks like it might be the base class clause of a class definition but we can't tell because you've missed out the beginning of the statement.
This is the full stack - compiling OneWayMuxImpl.cpp (g++)
-
In file included from /opt/boost_1_33_1/boost/mpl/aux_/arithmetic_op.hpp:26,
-
from /opt/boost_1_33_1/boost/mpl/plus.hpp:19,
-
from /opt/boost_1_33_1/boost/mpl/vector/aux_/iterator.hpp:19,
-
from /opt/boost_1_33_1/boost/mpl/vector/aux_/vector0.hpp:22,
-
from /opt/boost_1_33_1/boost/mpl/vector/aux_/clear.hpp:18,
-
from /opt/boost_1_33_1/boost/mpl/vector/vector0.hpp:24,
-
from /opt/boost_1_33_1/boost/mpl/vector/vector10.hpp:18,
-
from /opt/boost_1_33_1/boost/mpl/vector/vector20.hpp:18,
-
from /opt/boost_1_33_1/boost/mpl/vector/vector30.hpp:18,
-
from /opt/boost_1_33_1/boost/mpl/vector/vector40.hpp:18,
-
from /opt/boost_1_33_1/boost/mpl/vector/vector50.hpp:18,
-
from /opt/boost_1_33_1/boost/mpl/vector.hpp:36,
-
from /home/mahmood/flexus-4.0/core/metaprogram.hpp:57,
-
from /home/mahmood/flexus-4.0/core/configuration.hpp:50,
-
from /home/mahmood/flexus-4.0/core/simulator_layout.hpp:83,
-
from /home/mahmood/flexus-4.0/components/Common/OneWayMux.hpp:39,
-
from OneWayMuxImpl.cpp:39:
-
/opt/boost_1_33_1/boost/mpl/aux_/numeric_op.hpp:250: error: expected unqualified-id before ‘:’ token
The detail of each file at the mentioned line is:
OneWayMux.cpp:3 9 - #include <components/Common/OneWayMux.hpp>
OneWayMux.hpp:3 9 - #include <core/simulator_layout.hpp>
simulator_layou t.hpp:83 - #define FLEXUS_IMPLEMENTATION_FILE
-
-
#include <core/types.hpp>
-
#include <core/debug/debug.hpp>
-
#include <core/component.hpp>
-
#include <core/configuration.hpp>
configuration.h pp:50 - #include <core/metaprogram.hpp>
metaprogram.hpp :57 - #define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
-
#include <boost/mpl/vector.hpp>
-
-
#undef BOOST_MPL_NO_PREPROCESSED_HEADERS
vector.hpp:36 - # include BOOST_PP_STRINGIZE(boost/mpl/vector/AUX778076_VECTOR_HEADER)
-
# undef AUX778076_VECTOR_HEADER
vector50.hpp:18 - #if !defined(BOOST_MPL_PREPROCESSING_MODE)
-
# include <boost/mpl/vector/vector40.hpp>
-
#endif
vector40.hpp:18 - #if !defined(BOOST_MPL_PREPROCESSING_MODE)
-
# include <boost/mpl/vector/vector30.hpp>
-
#endif
vector30.hpp:18 - #if !defined(BOOST_MPL_PREPROCESSING_MODE)
-
# include <boost/mpl/vector/vector20.hpp>
-
#endif
vector20.hpp:18 - #if !defined(BOOST_MPL_PREPROCESSING_MODE)
-
# include <boost/mpl/vector/vector10.hpp>
-
#endif
vector10.hpp:18 - #if !defined(BOOST_MPL_PREPROCESSING_MODE)
-
# include <boost/mpl/vector/vector0.hpp>
-
#endif
vector0.hpp:24 - #include <boost/mpl/vector/aux_/clear.hpp>
clear.hpp:18 - #include <boost/mpl/vector/aux_/vector0.hpp>
vector0.hpp:22 - #include <boost/mpl/vector/aux_/iterator.hpp>
iterator.hpp:19 - #include <boost/mpl/plus.hpp>
plus.hpp:19 - #include <boost/mpl/aux_/arithmetic_op.hpp>
arithmetic_op.h pp:26 - #include <boost/mpl/aux_/numeric_op.hpp>
numeric_op.hpp: 250 - #if !defined(BOOST_MPL_CFG_MSVC_ETI_BUG)
-
: AUX778076_OP_IMPL_NAME<
-
typename AUX778076_OP_TAG_NAME<N1>::type
-
, typename AUX778076_OP_TAG_NAME<N2>::type
-
>::template apply<N1,N2>::type
-
#else
-
: aux::msvc_eti_base< typename apply_wrap2<
-
AUX778076_OP_IMPL_NAME<
-
typename AUX778076_OP_TAG_NAME<N1>::type
-
, typename AUX778076_OP_TAG_NAME<N2>::type
-
>
-
, N1
-
, N2
-
>::type >::type
-
#endif
I hope I provide the right information you wanted
Banfa 9,065
Recognized Expert Moderator Expert
Actually I was hoping for a little more of numeric_op.hpp, the lines before what you have already posted but part from that very impressive detail.
Sorry for that. You may find this code snippet. -
{
-
BOOST_MPL_AUX_LAMBDA_SUPPORT(
-
AUX778076_OP_ARITY
-
, AUX778076_OP_NAME
-
, ( BOOST_MPL_PP_PARAMS(AUX778076_OP_ARITY, N) )
-
)
-
};
-
-
template<
-
typename N1
-
, typename N2
-
>
-
struct BOOST_PP_CAT(AUX778076_OP_NAME,2)
-
-
#endif
-
-
#else // AUX778076_OP_ARITY == 2
-
-
template<
-
typename BOOST_MPL_AUX_NA_PARAM(N1)
-
, typename BOOST_MPL_AUX_NA_PARAM(N2)
-
>
-
struct AUX778076_OP_NAME
-
-
#endif
-
-
#if !defined(BOOST_MPL_CFG_MSVC_ETI_BUG)
-
: AUX778076_OP_IMPL_NAME< // EERROORR
-
typename AUX778076_OP_TAG_NAME<N1>::type
-
, typename AUX778076_OP_TAG_NAME<N2>::type
-
>::template apply<N1,N2>::type
-
#else
-
: aux::msvc_eti_base< typename apply_wrap2<
-
AUX778076_OP_IMPL_NAME<
-
typename AUX778076_OP_TAG_NAME<N1>::type
-
, typename AUX778076_OP_TAG_NAME<N2>::type
-
>
-
, N1
-
, N2
-
>::type >::type
-
#endif
-
{
-
#if AUX778076_OP_ARITY != 2
-
-
# if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
-
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
-
AUX778076_OP_ARITY
-
, AUX778076_OP_NAME
-
, ( BOOST_MPL_PP_PARTIAL_SPEC_PARAMS(2, N, na) )
-
)
-
# else
-
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, BOOST_PP_CAT(AUX778076_OP_NAME,2), (N1, N2))
-
# endif
-
-
#else
-
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, AUX778076_OP_NAME, (N1, N2))
-
#endif
-
};
-
I find the solution fairly easy....
I did a diff for numeric_op.hpp between 1.33.1 and current 1.46 (revision 70743) and found little differences in lines between two files. I did replace the old one with new one and the error disappeared.
I want to upload the files but don't see any attachment link. Where can I upload the files?
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: C. M. Sperberg-McQueen |
last post by:
wooks (wookiz@hotmail.com) wrote:
> <?xml version='1.0'?>
> <userlogin xmlns="urn:faster:userlogin"
> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
> <login>mick</login>
> <password>brown</password>
> </userlogin>
> Above is my schema instance.
|
by: Erik Moore |
last post by:
I am both producing and parsing an xml document that needs to be validated against a schema. I wanted some consumers of the document
to have the option of not performing a validation, so I left the nodes in the instance unqualified. An example of the document is
below:
<?xml version="1.0" encoding="utf-8" ?>
<filingreceipt xmlns="http://www.disclosureusa.org/filingreceipt.xsd">
<cpofilingnumber>TX2004043037501</cpofilingnumber>...
|
by: Goodmannewz |
last post by:
In the textbook, there is a sentence that "Default XML
namespaces(xmlns="...") helps a lot, but can also create problems, as a side
effect of the rules for automatic qualification. How to understand "automatic
qualification" here? Could you please give me an example? Secondly, unless
otherwise specified, a schema prescribes that loal elements and attributes
must be "unqualified". What does "unqualified" mean? Could you please giv eme
an...
|
by: Jeff S |
last post by:
I have the following three lines at the very top of a class file (prior to
the namespace declaration line).
using System;
using System.Data;
using System.Data.SqlClient;
Then, in a subsequent function in the same file I want to create a
connection by entering the following line:
SqlClient.SqlConnection cn = new
|
by: Simon |
last post by:
Hi -
I have a webservice with WSDL specifying 'elementFormDefault' set to
'unqualified'. I find when I try to process the incoming XML the raw XML
either looks like this:
<s0:rootelement xmlns:s0="myns">
<ChildElement></ChildElement>
</s0:rootelement >
| |
by: mavis |
last post by:
Unqualified element in XSD definition
For some reason, we may need to define elements in XSD to be
"unqualified".
According to the design patterns of XSD, it seems they do not recommend
to define elements in this way....it seems it will influence XPATH /
XSLT, etc...
|
by: Mark Olbert |
last post by:
I'm trying to serialize (using XmlSerializer.Serialize) a class that I generated from an XSD schema using XSD.EXE /c.
The problem I'm running into is that the root element needs to be unqualified, and the default namespace needs to be included on it
as an attribute. The schema I'm using is this:
<xs:schema
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:html="http://www.w3.org/TR/REC-html40"...
|
by: Jeremy |
last post by:
I've got two projects, both reference system, system.data and system.xml and
both include the using System.Xml.Serialization and using System at the top
of the file.
Both also include the XmlElementAttribute attribute on some properties as
defined below, but on one project I get the error "'System' denotes a
'namespace' where a 'class' was expected" and the other project I don't.
There highlights the word System on...
|
by: Stef Mientki |
last post by:
hello,
I've syntax error which I totally don't understand:
########## mainfile :
import test_upframe2
if __name__ == '__main__':
var1 = 33
code = 'print var1 + 3 \n'
|
by: Terry Reedy |
last post by:
Stef Mientki wrote:
Indendation is screwed. Is the above all do_more body?
Which locals does this get you? __init__'s? (locals()?)
Isn't this just the same as globals()?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |