Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

0.9.4 compile error on tests: constructor parameters #123

Closed
djtracy opened this Issue · 10 comments

3 participants

@djtracy

boost 1.48.0, Xcode 4.2, Apple LLVM Compiler 3.0 (Clang), cmake 2.8.8, Gnu Make 3.81, Mac OS X 10.7.4
Build commands: cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .; make

There are many errors of the "no matching constructor" variety. I initially commented out the tests to go forward with testing some basic code I can write, but I ran into the same problem in that I couldn't instantiate an http::server using the simple example on the web.

Here is the very first example from the make process:

/Volumes/HardDisk/DevelopmentTools/cpp-netlib/libs/network/test/http/client_constructor_test.cpp:17:12: error: no matching constructor
for initialization of 'boost::network::http::basic_client'
client instance2(io_service);
^ ~~~~~~~~~~

Here is an example of a server error after getting through some client problems:

[ 83%] Building CXX object libs/network/example/CMakeFiles/hello_world_server.dir/http/hello_world_server.cpp.o
cd /Volumes/HardDisk/DevelopmentTools/cpp-netlib-0.9.4/libs/network/example && /usr/bin/clang++ -DBOOST_NETWORK_DEBUG -DBOOST_NETWORK_ENABLE_HTTPS -g -I/Volumes/HardDisk/DevelopmentTools/boost -I/Volumes/HardDisk/DevelopmentTools/cpp-netlib-0.9.4 -I/opt/local/include -o CMakeFiles/hello_world_server.dir/http/hello_world_server.cpp.o -c /Volumes/HardDisk/DevelopmentTools/cpp-netlib-0.9.4/libs/network/example/http/hello_world_server.cpp
/Volumes/HardDisk/DevelopmentTools/cpp-netlib-0.9.4/libs/network/example/http/hello_world_server.cpp:56:16: error: no matching constructor for initialization of 'server' (aka 'server')
server server_(argv[1], argv[2], handler);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~

I do not see any files in Testing/Temporary/ to turn in as requested. Could not find the path.

Daniel

@deanberris
Owner

Sorry for the delay, this is a known issue with cpp-netlib 0.9.x involving Boost.Parameter breaking in Clang 3.x. Can you try using a later Boost version? The Boost.Parameter breakage may have already been addressed in later than 1.48 releases.

@tonyxiao

This problem still persist. Is there any workaround?

@tonyxiao

This is as of version

Apple clang version 4.0 (tags/Apple/clang-421.0.48) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
@deanberris
Owner
@deanberris
Owner
@tonyxiao
@deanberris
Owner
@tonyxiao
@deanberris
Owner
@deanberris
Owner

Dependency on Boost.Parameter has been removed, so this is no longer an issue.

@deanberris deanberris closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.