473,415 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,415 software developers and data experts.

failed to compile boost.system with msvc-7.1

I downloaded boost1.35.0 and built it with following command:

bjam --toolset=msvc-7.1 --variant=release --threading=multi --
link=shared --with-system stage

and it failed to compile, error message is:
E:\software\development\boost_1_35_0\boost_1_35_0> bjam --
toolset=msvc-7.1 --variant=release --threading=multi --link=shared --
with-system stage
....found 72 targets...
....updating 6 targets...
compile-c-c++ bin.v2\libs\system\build\msvc-7.1\release\threading-multi
\error_code.obj
error_code.cpp
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinNT.h(477) : error C2467: illegal declaration of anonymous 'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinNT.h(495) : error C2467: illegal declaration of anonymous 'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinNT.h(2117) : error C2146: syntax error : missing ';' before
identifier 'PVOID'

D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinNT.h(2117) : error C2501: '_inline' : missing storage-class or
type specifiers

D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinNT.h(2118) : error C2146: syntax error : missing ';' before
identifier 'PVOID'

D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinNT.h(2118) : error C2501: '_inline' : missing storage-class or
type specifiers

D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinNT.h(2118) : error C2086: 'int _inline' : redefinition
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK
\Include\WinNT.h(2117) : see declaration of '_inline'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinNT.h(7345) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinNT.h(7354) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinNT.h(7870) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinNT.h(8646) : error C2133: '_EVENTSFORLOGFILE::pEventLogRecords' :
unknown size

D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinNT.h(8652) : error C2133: '_PACKEDEVENTINFO::ulOffsets' : unknown
size
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinBase.h(231) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinBase.h(525) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinGDI.h(1892) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinGDI.h(1898) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinGDI.h(1946) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinGDI.h(1952) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(88) : error C2146: syntax error : missing ';' before
identifier 'QUERYHA
NDLER'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(91) : error C2143: syntax error : missing ';' before '*'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(91) : error C2365: 'QUERYHANDLER' : redefinition; previous
definition wa
s a 'function'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK
\Include\WinReg.h(88) : see declaration of 'QUERYHANDLER'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(91) : error C2501: 'PQUERYHANDLER' : missing storage-class
or type speci
fiers
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(94) : error C2146: syntax error : missing ';' before
identifier 'pi_R0_1
val'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(94) : error C2501: 'provider_info::PQUERYHANDLER' : missing
storage-clas
s or type specifiers
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(94) : error C2501: 'provider_info::pi_R0_1val' : missing
storage-class o
r type specifiers
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(95) : error C2146: syntax error : missing ';' before
identifier 'pi_R0_a
llvals'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(95) : error C2501: 'provider_info::PQUERYHANDLER' : missing
storage-clas
s or type specifiers
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(95) : error C2501: 'provider_info::pi_R0_allvals' : missing
storage-clas
s or type specifiers
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(96) : error C2146: syntax error : missing ';' before
identifier 'pi_R3_1
val'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(96) : error C2501: 'provider_info::PQUERYHANDLER' : missing
storage-clas
s or type specifiers
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(96) : error C2501: 'provider_info::pi_R3_1val' : missing
storage-class o
r type specifiers
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(97) : error C2146: syntax error : missing ';' before
identifier 'pi_R3_a
llvals'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(97) : error C2501: 'provider_info::PQUERYHANDLER' : missing
storage-clas
s or type specifiers
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinReg.h(97) : error C2501: 'provider_info::pi_R3_allvals' : missing
storage-clas
s or type specifiers
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\MMSystem.h(1837) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\MMSystem.h(1841) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\MMSystem.h(1862) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\MMSystem.h(1866) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\RpcDce.h(1807) : warning C4224: nonstandard extension used : formal
parameter 'ex
ception' was previously defined as a type
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\ShellAPI.h(886) : error C2146: syntax error : missing ';' before
identifier 'Shel
lMessageBoxA'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\ShellAPI.h(886) : error C2377: '_cdecl' : redefinition; typedef
cannot be overloa
ded with any other symbol
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK
\Include\WinReg.h(88) : see declaration of '_cdecl'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\ShellAPI.h(892) : error C2146: syntax error : missing ';' before
identifier 'Shel
lMessageBoxW'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\ShellAPI.h(892) : error C2086: 'int _cdecl' : redefinition
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK
\Include\ShellAPI.h(886) : see declaration of '_cdecl'
d:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\RpcNdr.h(1017) : error C2133: '_MIDL_FORMAT_STRING::Format' : unknown
size
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WTypes.h(999) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WTypes.h(1026) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WTypes.h(1039) : error C2467: illegal declaration of anonymous
'struct'
d:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\OAIdl.h(484) : error C2467: illegal declaration of anonymous 'struct'
d:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\OAIdl.h(486) : error C2467: illegal declaration of anonymous 'struct'
d:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\MsXml.h(595) : warning C4224: nonstandard extension used : formal
parameter 'DOMD
ocument' was previously defined as a type
d:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\MsXml.h(1213) : warning C4224: nonstandard extension used : formal
parameter 'DOM
Document' was previously defined as a type
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\PropIdl.h(371) : error C2467: illegal declaration of anonymous
'struct'

call "D:\program\Microsoft Visual Studio .NET 2003\VC7\bin
\vcvars32.bat" >nul
cl /Zm800 -nologo @"bin.v2\libs\system\build\msvc-7.1\release
\threading-multi\error_code.obj.rsp"

....failed compile-c-c++ bin.v2\libs\system\build\msvc-7.1\release
\threading-multi\error_code.obj...
....skipped <pbin.v2\libs\system\build\msvc-7.1\release\threading-
multi>boost_system-vc71-mt-1_35.dll for lack of <pbin.v2\libs\system
\build\msvc-7.1\r
elease\threading-multi>error_code.obj...
....skipped <pstage\lib>boost_system-vc71-mt-1_35.dll for lack of
<pbin.v2\libs\system\build\msvc-7.1\release\threading-
multi>boost_system-vc71-mt-1_35
..dll...
....skipped <pbin.v2\libs\system\build\msvc-7.1\release\threading-
multi>boost_system-vc71-mt-1_35.lib for lack of <pbin.v2\libs\system
\build\msvc-7.1\r
elease\threading-multi>error_code.obj...
....skipped <pstage\lib>boost_system-vc71-mt-1_35.lib for lack of
<pbin.v2\libs\system\build\msvc-7.1\release\threading-
multi>boost_system-vc71-mt-1_35
..lib...
....skipped <pstage\lib>boost_system-vc71-mt.lib for lack of <pstage
\lib>boost_system-vc71-mt-1_35.lib...
....failed updating 1 target...
....skipped 5 targets...
I added the system\src\error_code.cpp to an empty project and can
compiled it with success. So I guess there must be something wrong
with the default compile options, but I donnot know how to fix it.
Could anybody help me out? Any help would be appreciated!

Jun 27 '08 #1
2 4108
BruceWho wrote:

You should ask this on a windows/VS programming group.

--
Ian Collins.
Jun 27 '08 #2
BruceWho wrote:
I downloaded boost1.35.0 and built it with following command:

bjam --toolset=msvc-7.1 --variant=release --threading=multi --
link=shared --with-system stage

and it failed to compile, error message is:
E:\software\development\boost_1_35_0\boost_1_35_0> bjam --
toolset=msvc-7.1 --variant=release --threading=multi --link=shared --
with-system stage
...found 72 targets...
...updating 6 targets...
compile-c-c++
bin.v2\libs\system\build\msvc-7.1\release\threading-multi
\error_code.obj
error_code.cpp
D:\program\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\Include
\WinNT.h(477) : error C2467: illegal declaration of anonymous 'struct'
[SNIP]

That's a MSVC problem, one of the project settings, I haven't figured it out
yet. Same source code with different project settings will compile without
any warnings. Since it's microsoft speicfic try
microsoft.public.vc.language

hth
--
Jim Langston
ta*******@rocketmail.com
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bren | last post by:
Hi, Pardon my stupid, but I'm having a problem building Boost.Python as per the instructions at http://www.boost.org/libs/python/doc/building.html I got boost-build-2.0-m6.zip from...
4
by: frankg | last post by:
When I compile this file ------------------------------------------------------ #include <stdarg.h> template <class Any> void var_arg_func(int dimension_count, ...) { int dimensions;...
2
by: foahchon | last post by:
Hi, I tried building one of the examples from Boost's website in MSVC++ 6.0, but I got an error from the linker saying that it couldn't find a certain .lib file. So, I downloaded boost-build and...
5
by: FBergemann | last post by:
I use SunOS 5.8, gcc 3.3.2, boost 1.33.1. I have build the entire boost package and try to compile a simple example: #include <iostream> #include <string> #include <boost/regex.hpp //...
1
by: Max Wilson | last post by:
Hi, Has anyone here built Boost.Python modules under MinGW? I'm trying to build the Boost.Python tutorial under MinGW and getting an error that says it depends on MSVC, which puzzles me because...
5
by: GaryE | last post by:
Hello: I am having trouble linking a couple of files using the boost::filesystem. I am using MSVC 6.0. Here is an abbreviated version of my problem: foo.h: #ifndef __FOO_ #define...
6
by: hsmit.home | last post by:
Hello, I came across a strange error and it's really been bugging me. Maybe someone else has come across this and any insight would be appreciated. What I'm trying to accomplish is using...
0
by: Andrew MacIntyre | last post by:
Tony May wrote: The DLL that's actually being imported by your script is not a Python extension module, as the modules initialisation function can't be found. Use the -v option on the Python...
3
by: Unknownmat | last post by:
Here is the smallest code I could come up with to reproduce the I was able to reproduce the warning with an even smaller snippet of code: #include <vector> #include <functional> #include...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
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...
0
agi2029
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,...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.