Simon: I was able to compile the latest patch revision of 3.5.2 in C++03
mode on GCC and MSVC without modifying the src.

All: ... but Solaris Studio and the AIX XL compiler are no bueno because of
some template metaprogramming constructs which may or may not be part of
the C++03 spec itself. I didn't save the errors because I tried both 3
months ago and gave up trying to work around the errors, as too many
classes in a couple of headers had the same error (part of the error was
template specialization IIRC).

I suspect I'm the only one here who has any interest in compiling on XL and
Solaris Studio (needed to link with other libs built using the same
compiler), but if not I can try again and attach compilation error output.

On Mon, Aug 12, 2019 at 12:37 PM 'Adam Cozzette' via Protocol Buffers <
[email protected]> wrote:

> Before version 3.5, we had tests verifying that all the code would still
> build with GCC using C++98. Maybe GCC inadvertently enabled a few C++11
> features even in C++98 mode, but I think for the most part we avoided any
> C++11 features until 3.5.
>
> On Mon, Aug 12, 2019 at 6:11 AM Mike Pentney <[email protected]> wrote:
>
>> Hi, Simon.
>>
>> I am using protobuffers with Visual Studio 2008; I went for version 2.6.1
>> which is tagged in the git repository. From what I could gather, any
>> version above 3.0 requires C++11...
>>
>> HTH,
>>
>> Mike.
>>
>> On Thursday, July 4, 2019 at 3:25:59 PM UTC+1, Simon Elliott wrote:
>>>
>>> In https://github.com/protocolbuffers/protobuf/issues/2780 it's
>>> suggested that "We may create a branch that works for C++98. The branch
>>> will only accept bug fixes, but not new features, optimization, etc"
>>>
>>> https://github.com/protocolbuffers/protobuf/issues/3492 "Code should
>>> compile with --std=c++03 before we switch to c++11 only" has been closed,
>>> but I can't find the corresponding commit.
>>>
>>> I've tried to build  a few versions but always fall foul of "error: use
>>> of undeclared identifier 'va_copy'" which as c++ developers will be aware
>>> is specific to c++11 and later.
>>>
>>> Can anyone advise which version builds with -std=c++98 or -std=c++03?
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Protocol Buffers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/protobuf/539c87cf-ede7-468b-92e9-c5a101632349%40googlegroups.com
>> <https://groups.google.com/d/msgid/protobuf/539c87cf-ede7-468b-92e9-c5a101632349%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/protobuf/CADqAXr6OOZPMmgbMtk2CjNCn3d0MCu5UMoSWBuB7VzbFHA9gZQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/protobuf/CADqAXr6OOZPMmgbMtk2CjNCn3d0MCu5UMoSWBuB7VzbFHA9gZQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/CAApk-CCY76Rtx8-%3Drd5gFwMedzqE2bA4b1D3vYTfDDEOJ1WwbQ%40mail.gmail.com.

Reply via email to