Skip to content

Conversation

lyrra
Copy link

@lyrra lyrra commented Oct 21, 2017

build for freebsd 11.1 g++7 (really moving to g++ std11)

uint32_t nSequenceIn=std::numeric_limits<unsigned int>::max();
if (vStrInputParts.size() > 2)
nSequenceIn = std::stoul(vStrInputParts[2]);
nSequenceIn = stoul(vStrInputParts[2], 0, 10);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep using the fully-qualified name

@laanwj
Copy link
Member

laanwj commented Oct 21, 2017

Did anything change in the C++ standard to require explicitly passing these arguments instead of implicitly by default?
(or is this just a workaround for a broken compiler?)

#include "utilstrencodings.h"

#include <stdio.h>

Copy link
Contributor

@paveljanik paveljanik Oct 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this is the only valid change right now.
...
But as we use fprintf to stderr for printing error messages...

@lyrra
Copy link
Author

lyrra commented Oct 21, 2017

Please wait, I'll gmake clean && gmake without the patch :)

@lyrra
Copy link
Author

lyrra commented Oct 21, 2017

Please disregard my patch! I have now compiled&installed&runned bitcoind with both Clang and g++7.
My patch sprung from trying to fix build on an older freebsd with older compiler and boost (pre-c++11).

@fanquake
Copy link
Member

Thanks @lyrra, I'll close this PR then.

@fanquake fanquake closed this Oct 22, 2017
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants