473,890 Members | 3,522 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\dev elopment\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\sys tem\build\msvc-7.1\release\thr eading-multi
\error_code.obj
error_code.cpp
D:\program\Micr osoft Visual Studio .NET 2003\VC7\Platfo rmSDK\Include
\WinNT.h(477) : error C2467: illegal declaration of anonymous 'struct'
D:\program\Micr osoft Visual Studio .NET 2003\VC7\Platfo rmSDK\Include
\WinNT.h(495) : error C2467: illegal declaration of anonymous 'struct'
D:\program\Micr osoft Visual Studio .NET 2003\VC7\Platfo rmSDK\Include
\WinNT.h(2117) : error C2146: syntax error : missing ';' before
identifier 'PVOID'

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

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

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

D:\program\Micr osoft Visual Studio .NET 2003\VC7\Platfo rmSDK\Include
\WinNT.h(2118) : error C2086: 'int _inline' : redefinition
D:\program\Micr osoft Visual Studio .NET 2003\VC7\Platfo rmSDK
\Include\WinNT. h(2117) : see declaration of '_inline'
D:\program\Micr osoft Visual Studio .NET 2003\VC7\Platfo rmSDK\Include
\WinNT.h(7345) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Micr osoft Visual Studio .NET 2003\VC7\Platfo rmSDK\Include
\WinNT.h(7354) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Micr osoft Visual Studio .NET 2003\VC7\Platfo rmSDK\Include
\WinNT.h(7870) : error C2467: illegal declaration of anonymous
'struct'
D:\program\Micr osoft Visual Studio .NET 2003\VC7\Platfo rmSDK\Include
\WinNT.h(8646) : error C2133: '_EVENTSFORLOGF ILE::pEventLogR ecords' :
unknown size

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

call "D:\program\Mic rosoft Visual Studio .NET 2003\VC7\bin
\vcvars32.bat" >nul
cl /Zm800 -nologo @"bin.v2\libs\s ystem\build\msv c-7.1\release
\threading-multi\error_cod e.obj.rsp"

....failed compile-c-c++ bin.v2\libs\sys tem\build\msvc-7.1\release
\threading-multi\error_cod e.obj...
....skipped <pbin.v2\libs\s ystem\build\msv c-7.1\release\thr eading-
multi>boost_sys tem-vc71-mt-1_35.dll for lack of <pbin.v2\libs\s ystem
\build\msvc-7.1\r
elease\threadin g-multi>error_cod e.obj...
....skipped <pstage\lib>boo st_system-vc71-mt-1_35.dll for lack of
<pbin.v2\libs\s ystem\build\msv c-7.1\release\thr eading-
multi>boost_sys tem-vc71-mt-1_35
..dll...
....skipped <pbin.v2\libs\s ystem\build\msv c-7.1\release\thr eading-
multi>boost_sys tem-vc71-mt-1_35.lib for lack of <pbin.v2\libs\s ystem
\build\msvc-7.1\r
elease\threadin g-multi>error_cod e.obj...
....skipped <pstage\lib>boo st_system-vc71-mt-1_35.lib for lack of
<pbin.v2\libs\s ystem\build\msv c-7.1\release\thr eading-
multi>boost_sys tem-vc71-mt-1_35
..lib...
....skipped <pstage\lib>boo st_system-vc71-mt.lib for lack of <pstage
\lib>boost_syst em-vc71-mt-1_35.lib...
....failed updating 1 target...
....skipped 5 targets...
I added the system\src\erro r_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 4152
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\dev elopment\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\sys tem\build\msvc-7.1\release\thr eading-multi
\error_code.obj
error_code.cpp
D:\program\Micr osoft Visual Studio .NET 2003\VC7\Platfo rmSDK\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.publi c.vc.language

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

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

Similar topics

1
2934
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 sourceforge and build bjam.exe. I've tried several ways:
4
3267
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; va_list ap;
2
3336
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 bjam, built bjam, but I can't seem to get bjam to work. I am using bjam v2. Here are some of the command lines I've tried: bjam -sTOOLS=msvc install (v1 syntax should work unless overridden with --v2 parameter) This produces a "target not...
5
7194
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 // Boost.Regex lib using namespace std;
1
2505
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 Boost built using g++. Here's some of my output: Student@YGGDRASIL /c/Boost/libs/python/example/tutorial $ bjam -sTOOLS=mingw -d+2 ....found 1508 targets...
5
3434
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 __FOO_ #include "boost/filesystem.hpp"
6
2551
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 boost::lexical_cast to cast a vector of strings to a string. The compiler I'm using is MSVC++ 2005 Express Edition. The gc++
0
2686
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 command line to identify which DLL is actually being imported. You can then decide to move/rename.delete it or your own module as best fits your circumstances. --
3
2031
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 <boost/function.hpp> int main()
0
9979
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9823
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,...
1
10924
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,...
0
9637
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, 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...
1
8017
isladogs
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...
0
5854
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6049
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4681
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
3
3281
bsmnconsultancy
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...

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.