0

build error in VS 2010(windows 7)

asked 2015-04-20 22:26:55 -0700

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I am trying to build the source in Visual Studio 2010, in a windows 7 Machine. Configured system as per the page https://allseenalliance.org/developers/develop/building/windows/build-source#unique_23

Command used to build : scons OS=win7 CPU=x86_64 VARIANT=release MSVC_VERSION=10.0 BINDINGS=cpp

Build Error in Event.cc . Details are as follows:

[CXX]     common\os\windows\Condition.cc  Condition.cc
[CXX]     common\os\windows\Environ.cc Environ.cc
[CXX]     common\os\windows\Event.cc  Event.cc
common\os\windows\Event.cc(133) : error C2061: syntax error : identifier '_In_reads_'
common\os\windows\Event.cc(133) : error C2059: syntax error : ')'
common\os\windows\Event.cc(134) : error C2143: syntax error : missing ')' before '{'
common\os\windows\Event.cc(181) : error C2061: syntax error : identifier '_In_reads_'
common\os\windows\Event.cc(181) : error C2059: syntax error : ')'
common\os\windows\Event.cc(181) : error C2143: syntax error : missing ')' before ':'
common\os\windows\Event.cc(136) : error C2065: 'indexSignaled' : undeclared identifier
common\os\windows\Event.cc(148) : error C2065: 'handles' : undeclared identifier
common\os\windows\Event.cc(148) : error C2065: 'timeoutMsec' : undeclared identifier
common\os\windows\Event.cc(170) : error C2065: 'indexSignaled' : undeclared identifier
common\os\windows\Event.cc(183) : error C2065: 'handles' : undeclared identifier
common\os\windows\Event.cc(184) : error C2065: 'numHandles' : undeclared identifier
common\os\windows\Event.cc(185) : error C2065: 'groupIndex' : undeclared identifier
common\os\windows\Event.cc(186) : error C2065: 'timeoutMsec' : undeclared identifier
common\os\windows\Event.cc(751) : error C2660: 'qcc::SuperWaiter::WaitForMultipleObjects' : function does not         take 4 arguments
scons: *** [build\win7\x86_64\release\obj\common\os\Event.obj] Error 2
scons: building terminated because of errors.

It will of great help if anybody could suggest what could be the issue.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-04-21 12:44:11 -0700

It looks as though _In_reads_ is not part of VS2010 ( https://msdn.microsoft.com/en-us/library/ms235402(v=vs.100).aspx ) and was added in VS2012 ( https://msdn.microsoft.com/en-us/library/hh916382(v=vs.110).aspx ).

edit flag offensive delete publish link more

Comments

Thank you for the information. I could build the source with VS2012 and run the samples also.

sard_tg ( 2015-04-22 01:05:14 -0700 )edit

@sard_tg No problem, if you could please mark the answer as correct, then that would be great.

tmalsbar ( 2015-04-22 09:19:30 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-04-20 22:26:55 -0700

Seen: 296 times

Last updated: Apr 21 '15