Dear Everyone!
Is there additional configuration of VS2010 for compile the stack?
I just open the the "BACnet Stack Development.sln" \bacnet-stack-0.8.3\ports\win32\Microsoft Visual Studio 2010.
When I compile the stack with VS2010, I find the error messages as following :
1>------ Build started: Project: BACnet Stack Library, Configuration: Debug Win32 ------
2>------ Build started: Project: BACnet Object Definitions, Configuration: Debug Win32 ------
1>Build started 5/25/2016 5:22:04 PM.
1>InitializeBuildStatus:
1> Touching "Debug\BACnet Stack Library.unsuccessfulbuild".
2>Build started 5/25/2016 5:22:05 PM.
2>InitializeBuildStatus:
2> Touching "Debug\BACnet Object Definitions.unsuccessfulbuild".
1>ClCompile:
1> bip-init.c
1>d:\bacnet-stack-0.8.3\include\datetime.h(91): error C2061: syntax error : identifier 'datetimeisvalid'
1>d:\bacnet-stack-0.8.3\include\datetime.h(91): error C2059: syntax error : ';'
1>d:\bacnet-stack-0.8.3\include\datetime.h(92): error C2059: syntax error : 'type'
1>d:\bacnet-stack-0.8.3\include\datetime.h(94): error C2061: syntax error : identifier 'datetimetimeisvalid'
1>d:\bacnet-stack-0.8.3\include\datetime.h(94): error C2059: syntax error : ';'
1>d:\bacnet-stack-0.8.3\include\datetime.h(95): error C2059: syntax error : 'type'
1>d:\bacnet-stack-0.8.3\include\datetime.h(96): error C2061: syntax error : identifier 'datetimedateisvalid'
1>d:\bacnet-stack-0.8.3\include\datetime.h(96): error C2059: syntax error : ';'
1>d:\bacnet-stack-0.8.3\include\datetime.h(97): error C2059: syntax error : 'type'
1>d:\bacnet-stack-0.8.3\include\datetime.h(110): error C2061: syntax error : identifier 'datetimeisleapyear'
1>d:\bacnet-stack-0.8.3\include\datetime.h(110): error C2059: syntax error : ';'
1>d:\bacnet-stack-0.8.3\include\datetime.h(111): error C2059: syntax error : 'type'
1>d:\bacnet-stack-0.8.3\include\datetime.h(119): error C2061: syntax error : identifier 'datetimeymdisvalid'
1>d:\bacnet-stack-0.8.3\include\datetime.h(119): error C2059: syntax error : ';'
1>d:\bacnet-stack-0.8.3\include\datetime.h(120): error C2059: syntax error : 'type'
1>d:\bacnet-stack-0.8.3\include\datetime.h(172): error C2061: syntax error : identifier 'datetimewildcard'
............
Anonymous
View and moderate all "support-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Support Requests"
umm....
VS2010's _MSC_VER is 1600, it has no _Bool.
But stdbool.h make do not define it cause "#if _MSC_VER < 1600 typedef int8_t _Bool; #endif"
so I fix as "#if _MSC_VER < 1700 typedef int8_t _Bool; #endif"