chat sample

View: New views
5 Messages — Rating Filter:   Alert me  

chat sample

by hosseinyounesi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi again !
I want to compile the chat example in the package by this command "g++ chat_server.cpp", but lot's of errors come and I can't fix it. Any one can help me ?  Is compiling boost really hard or I can't do them ?!!!
error

Re: chat sample

by Steven Watanabe-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

AMDG

hosseinyounesi wrote:
> Hi again !
> I want to compile the chat example in the package by this command "g++
> chat_server.cpp", but lot's of errors come and I can't fix it. Any one can
> help me ?  Is compiling boost really hard or I can't do them ?!!!
> http://www.nabble.com/file/p18753376/error error
>  

Try

g++ -I/path/to/boost/headers chat_server.cpp

In Christ,
Steven Watanabe

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: chat sample

by hosseinyounesi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I used locate command to find bind.hpp file. It was in /usr/include/boost.hpp , so I typed this command :
g++ -I/usr/include/boost/ chat_server.cpp . I also copied the chat_message.hpp there. chat_server is in my Desktop. But it didn't work :( the same error
Steven Watanabe-4 wrote:
AMDG

hosseinyounesi wrote:
> Hi again !
> I want to compile the chat example in the package by this command "g++
> chat_server.cpp", but lot's of errors come and I can't fix it. Any one can
> help me ?  Is compiling boost really hard or I can't do them ?!!!
> http://www.nabble.com/file/p18753376/error error
>  

Try

g++ -I/path/to/boost/headers chat_server.cpp

In Christ,
Steven Watanabe

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: chat sample

by Steven Watanabe-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

AMDG

hosseinyounesi wrote:
> I used locate command to find bind.hpp file. It was in /usr/include/boost.hpp
> , so I typed this command :
> g++ -I/usr/include/boost/ chat_server.cpp . I also copied the
> chat_message.hpp there. chat_server is in my Desktop. But it didn't work :(
> the same error
>  

Asio was first released in 1.35.  It sounds like you are using an older
version.

In Christ,
Steven Watanabe

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: chat sample

by Jurko Gospodnetić :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

   Hi hosseinyounesi.

>> Hi again !
>> I want to compile the chat example in the package by this command "g++
>> chat_server.cpp", but lot's of errors come and I can't fix it. Any one
>> can
>> help me ?  Is compiling boost really hard or I can't do them ?!!!
>> http://www.nabble.com/file/p18753376/error error  
>
> Try
>
> g++ -I/path/to/boost/headers chat_server.cpp

   Plus, your initial error message seems really suspicious as it
mentions 'boot/asio.hpp' instead of 'boost/asio.hpp'.

   Best regards,
     Jurko Gospodnetić

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build