When attempting to compile a boost project I get the following error

user9833551

I am trying to work on a project that uses the boost C++ library. The project in question is

https://gnss-sdr.org/docs/tutorials/monitoring-software-receiver-internal-status/#testing-the-monitoring-client

When I run make in the build directory I get

In file included from /Users/me/monitoring-client/main.cc:6:
In file included from /Users/me/monitoring-client/gnss_synchro_udp_source.h:4:
In file included from /opt/local/include/boost/asio.hpp:31:
In file included from /opt/local/include/boost/asio/basic_socket_iostream.hpp:24:
/opt/local/include/boost/asio/basic_socket_streambuf.hpp:586:7: error: C++ requires a type specifier for all
      declarations
  int timeout() const

the CMake file does ensure that c++11 is the standard and I have not modified anything from the site. I am working on macos Mojave.

How can i resolve this?

clang --version
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
U. W.

I have seen this kind of problem before.

It was an error in the order in which includes were done.

Actually we used this kind of error on purpose to find the places in the code where we did it wrong.

So, @Scheff is most likely right. There is a #define timeout somewhere which shadows the intended timeout.

And yes, old style macros are evil nowadays when we have C++11, but old style macros in lowercase deserve a special place in hell.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

I get error when i run My function in Logic App Designer , following the azure sample project documentation

When attempting to apply range properties to a range or cells i get an error

Trying to compile package body and i get Error(37,6): PLS-00103: Encountered the symbol ";" when expecting one of the following: if

How do I get this Typescript Webpack project to compile without error?

Attribute error when attempting to get a value for field

NAs when attempting to get standard error

I get the following error when running npm build

I get the following error when trying to set a wallpaper

I get stray '#' in program error when I try to compile this program

Why do I get an error for "__CrtGetFileInformationByHandleEx " when I try to compile

Why do I get the error "no `block_on` in `executor`" when attempting to block on an async function?

Why do I get the error: "cannot communicate with the debug host process" when attempting to execute an SSIS package?

When attempting to deploy a business network I get an error 'Failed parsing HTTP/2' in grpc

Compile errors when attempting to link <boost\property_tree\json_parser.hpp>

Why do I get a compile error when calling start method?

Why do I get an Undefined reference error when trying to compile?

Error when attempting to install npm package in a Next.JS project

The following error occurred attempting to run the project model server process (1.0.0-rc4-004771)

When i try to create react project i get error

When I connect Firebase to my Flutter project, I get an error

I get an error when i build my project in kotlin

When I create an 'empty compose activity' project and click run it gives me the following error

I got following error when importing project in Intellij Idea (Community Edition) 2016.2.1 EAP

when running npm start, to start a react project I get the following messages on the terminal

Why I receive error LNK1561 "Entry point must be defined" when I compile a DLL Project?

How to fix 'parse error on input ‘=’' when compile the following quicksort example?

Intermittent error "There was an error while attempting to compile the stylesheet"

I get following error when I import *.vue files without .vue extension?

When i click on the marker, the pop up doesn't appear. I get the following error