is inaccessible and has no member

is inaccessible and has no member

Ritratto di CommanderLake

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.

14 post / 0 new
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione
Ritratto di Jennifer J. (Intel)

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

Thanks,

Jennifer

Ritratto di CommanderLake

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

Ritratto di CommanderLake

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

Ritratto di Tim Prince

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.

Ritratto di CommanderLake

Got the .i files but they are huge!

Ritratto di Marián &quot;VooDooMan&quot; Meravý

Quote:

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.

-- With best regards, VooDooMan - If you find my post helpful, please rate it and/or select it as a best answer where applies. Thank you.
Ritratto di CommanderLake

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

Ritratto di Marián &quot;VooDooMan&quot; Meravý

Quote:

commanderlake wrote:

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

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

-- With best regards, VooDooMan - If you find my post helpful, please rate it and/or select it as a best answer where applies. Thank you.
Ritratto di CommanderLake

My project is on hold till I solve this.

Ritratto di Jennifer J. (Intel)

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

Jennifer

Ritratto di CommanderLake

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?

Allegati: 

AllegatoDimensione
Scarica rcclientppdlg.i12.62 MB
Ritratto di AmandaS (Intel)

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)?

Ritratto di CommanderLake

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

Accedere per lasciare un commento.