Project

General

Profile

Actions

Bug #2264

closed

stream-transport.hpp does not compile on its own

Added by Junxiao Shi over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Base
Target version:
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

Related issues 1 (0 open1 closed)

Blocks ndn-cxx - Task #2271: Jenkins: verify every installed header compiles on its ownClosedJunxiao Shi

Actions
Actions #1

Updated by Yingdi Yu over 9 years ago

Any reason to make these file compile on their own?

Actions #2

Updated by Davide Pesavento over 9 years ago

We should automate this check somehow.

Actions #3

Updated by Junxiao Shi over 9 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.

Actions #4

Updated by Davide Pesavento over 9 years ago

e.g.

find <path> -name '*.hpp' -type f -execdir g++ -c -std=c++11 '{}' \;
Actions #5

Updated by Davide Pesavento over 9 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.

Actions #6

Updated by Junxiao Shi over 9 years ago

  • Blocks Task #2271: Jenkins: verify every installed header compiles on its own added
Actions #7

Updated by Junxiao Shi over 9 years ago

  • Status changed from New to In Progress
  • Assignee set to Junxiao Shi
Actions #8

Updated by Junxiao Shi over 9 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 0 to 100
Actions #9

Updated by Junxiao Shi over 9 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF