Skip to content

0.9.4 compile error on tests: constructor parameters  #123

@djtracy

Description

@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<boost::network::http::tags::http_default_8bit_tcp_resolve, 1, 0>'
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<hello_world>')
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions