Community
cancel
Showing results for 
Search instead for 
Did you mean: 
DLake1
New Contributor I
179 Views

is inaccessible and has no member

Compiler XE 14 and boost 1.54

errors:

error #373: "boost::asio::detail::noncopyable::noncopyable(const boost::asio::detail::noncopyable &)" (declared at line 32 of "path removed\boost/asio/detail/noncopyable.hpp") is inaccessible    path removed\boost\asio\basic_streambuf.hpp

error : class "boost::asio::basic_socket_iostream<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp>, boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime>, boost::asio::deadline_timer_service<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime>>>" has no member "read_some"    path removed\boost\asio\impl\read.hpp

Please explain.

0 Kudos
13 Replies
JenniferJ
Moderator
179 Views

This issue is new. Could you please attach the .i file and command line?

Thanks,

Jennifer

DLake1
New Contributor I
179 Views

I dont have an .i file anywhere, I'm using visual studio 2010 if that makes a difference.

DLake1
New Contributor I
179 Views

I fixed the second error but still having trouble with the first:

"boost::asio::detail::noncopyable::noncopyable(const boost::asio::detail::noncopyable &)" (declared at line 31 of "path removed\boost/asio/detail/noncopyable.hpp") is inaccessible
1>        private noncopyable
1>                  ^

if I comment private in the noncopyable class:

class noncopyable{ protected:   noncopyable() {}   ~noncopyable() {} private:   noncopyable(const noncopyable&);   const noncopyable& operator=(const noncopyable&); };

I get an LNK2019 instead

TimP
Black Belt
179 Views

You would make the pre-processed file by a command line such as

icl -E -I..... *.cpp > your.i

This would show how the includes were resolved.

A mixture of forward and back slashes in paths doesn't look right.

Marián__VooDooMan__M
New Contributor II
179 Views

commanderlake wrote:

Got the .i files but they are huge!

It is normal for preprocessed files to have size of several hundreds megabytes, if not gigabytes. You can always zip them and upload an archive.

DLake1
New Contributor I
179 Views

I meant big for files containing text, they are a perfectly manageable size, the most significant one I uploaded with my last post.

Marián__VooDooMan__M
New Contributor II
179 Views

commanderlake wrote:

[....] I uploaded with my last post.

oops, I must have been overworked, I have not noticed that fact, sorry for the noise :-)

DLake1
New Contributor I
179 Views

My project is on hold till I solve this.

JenniferJ
Moderator
179 Views

I got other different errors with the .i file. which VC are you using? are you building for x64 or win32?

Jennifer

DLake1
New Contributor I
179 Views

Got the .i files but they are huge!

DLake1
New Contributor I
179 Views

Heres the .i file again, I did a rebuild the first time and missed the errors saying it couldnt find the obj files, let me know if u need any of the other .i files. I'm building for win32, how do I know what VC I'm using?
Amanda_S_Intel
Employee
179 Views

I am working on a similar problem. I can reproduce the error with your test case and icl 14.0:

C:\Users\Administrator\Documents\Visual Studio 2010\boost154\boost/asio/basic_streambuf.hpp(113): error #373: "boost::asio::detail::noncopyable::noncopyable(const boost::asio::detail::noncopyable &)" (declared at line 31 of "C:\Users\Administrator\Documents\Visual Studio 2010\boost154\boost/asio/detail/noncopyable.hpp") is inaccessible
private noncopyable
^
detected during:
implicit generation of "boost::asio::basic_streambuf<Allocator>::basic_streambuf(const boost::asio::basic_streambuf<std::allocator<char>> &) [with Allocator=std::allocator<char>]" at line 161 of "RCClientPPDlg.cpp"
instantiation of class "boost::asio::basic_streambuf<Allocator> [with Allocator=std::allocator<char>]" at line 161 of "RCClientPPDlg.cpp"

Does the code compile with the Microsoft compiler (unless of course you are using Intel-specfic syntax)?

DLake1
New Contributor I
179 Views

I worked around the issue by simply removing the noncopyable attribute (or whatever its called).

Reply