Actions
Bug #2264
closedstream-transport.hpp does not compile on its own
Start date:
12/03/2014
Due date:
% Done:
100%
Estimated time:
0.50 h
Description
Snippet:
#include <ndn-cxx/transport/stream-transport.hpp>
Compile using: g++ x.cpp -c --std=c++0x $(pkg-config --cflags --libs libndn-cxx)
Expected: code compiles without error
Actual:
In file included from ndncxx-header-standalone-compile.cpp:1:0:
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:37:21: error: ‘Block’ was not declared in this scope
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:37:26: error: template argument 1 is invalid
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:37:26: error: template argument 2 is invalid
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:40:56: error: ‘boost::asio’ has not been declared
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:40:72: error: expected ‘,’ or ‘...’ before ‘&’ token
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:50:24: error: ‘system’ in namespace ‘boost’ does not name a type
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:50:49: error: expected unqualified-id before ‘&’ token
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:50:49: error: expected ‘)’ before ‘&’ token
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:50:39: error: expected ‘;’ at end of member declaration
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:50:51: error: expected ‘;’ at end of member declaration
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:50:56: error: expected unqualified-id before ‘)’ token
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:335:1: error: expected ‘}’ at end of input
/usr/local/include/ndn-cxx/transport/stream-transport.hpp: In constructor ‘ndn::StreamTransportImpl<BaseTransport, Protocol>::StreamTransportImpl(BaseTransport&, int)’:
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:41:7: error: class ‘ndn::StreamTransportImpl<BaseTransport, Protocol>’ does not have any field named ‘m_transport’
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:42:7: error: class ‘ndn::StreamTransportImpl<BaseTransport, Protocol>’ does not have any field named ‘m_socket’
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:42:16: error: ‘ioService’ was not declared in this scope
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:43:7: error: class ‘ndn::StreamTransportImpl<BaseTransport, Protocol>’ does not have any field named ‘m_inputBufferSize’
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:44:7: error: class ‘ndn::StreamTransportImpl<BaseTransport, Protocol>’ does not have any field named ‘m_connectionInProgress’
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:45:7: error: class ‘ndn::StreamTransportImpl<BaseTransport, Protocol>’ does not have any field named ‘m_connectTimer’
/usr/local/include/ndn-cxx/transport/stream-transport.hpp: At global scope:
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:47:3: error: expected unqualified-id at end of input
/usr/local/include/ndn-cxx/transport/stream-transport.hpp:47:3: error: expected ‘}’ at end of input
Updated by Yingdi Yu about 10 years ago
Any reason to make these file compile on their own?
Updated by Davide Pesavento about 10 years ago
We should automate this check somehow.
Updated by Junxiao Shi about 10 years ago
We should automate this check somehow.
In fact I made a script to check for these, and reported seven Bugs.
These Bugs need to close before I can check in the script to use on Jenkins.
Updated by Davide Pesavento about 10 years ago
e.g.
find <path> -name '*.hpp' -type f -execdir g++ -c -std=c++11 '{}' \;
Updated by Davide Pesavento about 10 years ago
Junxiao Shi wrote:
In fact I made a script to check for these, and reported seven Bugs.
These Bugs need to close before I can check in the script to use on Jenkins.
Ok, cool.
Updated by Junxiao Shi about 10 years ago
- Blocks Task #2271: Jenkins: verify every installed header compiles on its own added
Updated by Junxiao Shi about 10 years ago
- Status changed from New to In Progress
- Assignee set to Junxiao Shi
Updated by Junxiao Shi about 10 years ago
- Status changed from In Progress to Code review
- % Done changed from 0 to 100
Updated by Junxiao Shi about 10 years ago
- Status changed from Code review to Closed
Actions