Using boost library on MacOSx

On Jul 24, 2009, at 10:30 AM, boost-users-request@lists.boost.org wrote:
I have install boost library using this: $ sudo port install boost It seems download and compile fine on my local machine.
But then i tried to compile a simple echo client example from http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio/examples.html
I get a bunch of compiler errors. I am using "g++ -o block_client blocking_udp_echo_client.cpp "
Here are some of the errors: $ g++ -o block_client blocking_udp_echo_client.cpp blocking_udp_echo_client.cpp:68:10: error: #include expects "FILENAME" or <FILENAME> blocking_udp_echo_client.cpp:69:10: error: #include expects "FILENAME" or <FILENAME> blocking_udp_echo_client.cpp:70:10: error: #include expects "FILENAME" or <FILENAME> blocking_udp_echo_client.cpp:71:10: error: #include expects "FILENAME" or <FILENAME> blocking_udp_echo_client.cpp:83: error: stray ‘\’ in program blocking_udp_echo_client.cpp:108: error: stray ‘\’ in program blocking_udp_echo_client.cpp:112: error: stray ‘\’ in program
Thank you for any help.
From my experience building software on MacOSX, I suspect that the
problem is that you have not correctly defined an environment variable
or something like that. If you write a line like "#include
participants (1)
-
Richard L. Aurbach