Boost logo

Boost-Build :

Subject: Re: [Boost-build] _MSC_VER error while compiling in VS IDE with my project
From: John Maddock (jz.maddock_at_[hidden])
Date: 2016-06-04 12:01:40


On 03/06/2016 16:12, KH PushpaKumari wrote:
>
> Hi,
>
> I am trying to compile my project with VS 2015 since my 3^rd party
> library is already built in VS 2015. My project uses boost 1.48.0 and
> not the 3^rd party library.
>
> When I compiled boost 1.58.0 or 1.60.0 on VS 2015 2015 command prompt,
> it compiled successfully. But when I add it into my project it throws
> the errors as in the attached file.
>

Boost-1.48 was released before the compiler that you are using, so it
knows nothing about it.

The errors in your log also indicate that you are linking code compiled
with one msvc version to libraries compiled with a different version -
and that's never going to work. I assume you turned off auto-linking
and all the protection from this (and other) errors it provides?

> I have made the below changes after I checked in google. Kindly let me
> know your suggestions to clear off the error _MSC_VER.
>
> 1) For the error - Unknown compiler version - please run the configure
> tests and report the results
>

That's not an error - it's a #pragma message to inform you that you're
into unknown territory with all bets off....

> Based on the suggestion in this url
>
> "http://stackoverflow.com/questions/30760889/unknown-compiler-version-while-compiling-boost-with-msvc-14-0-vs-2015"
>
> I have made the below changes in
> "boost_1_48_0\boost\config\compiler\visualc.hpp":
>
> // last known and checked version is 1600 (VC10, aka 2010):
>
> //#if (_MSC_VER > 1700)
>
> // last known and checked version is 19.00.23506 (VC++ 2015 Update 1):
>
> #if (_MSC_VER > 1800 && _MSC_FULL_VER > 190023918)
>
> 2) For the error - 'gets': is not a member of '`global namespace''
> cstdio
> (boost_1_48_0\boost\compatibility\cpp_c_headers\cstdio)
>
> I changed using::gets to using::gets_s, since gets_s was the one which
> was available
>
> 3) For the error - syntax error: 'constant' xtime.hpp
> (boost_1_48_0\boost\thread\xtime.hpp)
>
> I changed TIME_UTC to XTIME_UTC, since it was conflicting with
> standard time.h (as #defineTIME_UTC1)
>
> Thanks & Regards,
>
> *Pushpa Kumari K.H*
>
>
> Information transmitted by this e-mail is proprietary to Mphasis, its
> associated companies and/ or its customers and is intended
> for use only by the individual or entity to which it is addressed, and
> may contain information that is privileged, confidential or
> exempt from disclosure under applicable law. If you are not the
> intended recipient or it appears that this mail has been forwarded
> to you without proper authority, you are notified that any use or
> dissemination of this information in any manner is strictly
> prohibited. In such cases, please notify us immediately at
> mailmaster_at_[hidden] and delete this mail from your records.
>
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk