Hey Finn,
2009/5/10 Finn Arild Aasheim <[email protected]>:
> Hi - new member from Norway here - just been spending this weekend
> trying to build Wt on my Macbook. My ambitions with Wt is creating an
> OpenSource CMS/community site application that performs well. It's
> been a while since I did any c++ now, but I'm hoping it is something
> like bicycling.
You started with a flat tire !
> [ 97%] Building CXX object src/http/CMakeFiles/wthttp.dir/Server.o
> /local/src/wt-2.2.4/src/http/Server.C: In member function 'void
> http::server::Server::select_read(int)':
> /local/src/wt-2.2.4/src/http/Server.C:288: error: 'boost::system' has
> not been declared
> /local/src/wt-2.2.4/src/http/Server.C:288: error: expected type-
> specifier
> /local/src/wt-2.2.4/src/http/Server.C:288: error: expected `)' before
> '&' token
> /local/src/wt-2.2.4/src/http/Server.C:288: error: expected `{' before
> '&' token
> /local/src/wt-2.2.4/src/http/Server.C:288: error: 'e' was not declared
> in this scope
> /local/src/wt-2.2.4/src/http/Server.C:288: error: expected `;' before
> ')' token
> /local/src/wt-2.2.4/src/http/Server.C:290: error: expected primary-
> expression before 'catch'
> /local/src/wt-2.2.4/src/http/Server.C:290: error: expected `;' before
> 'catch'
> /local/src/wt-2.2.4/src/http/Server.C:300: error: a function-
> definition is not allowed here before '{' token
> /local/src/wt-2.2.4/src/http/Server.C:324: error: a function-
> definition is not allowed here before '{' token
> /local/src/wt-2.2.4/src/http/Server.C:340: error: a function-
> definition is not allowed here before '{' token
> /local/src/wt-2.2.4/src/http/Server.C: At global scope:
> /local/src/wt-2.2.4/src/http/Server.C:363: error: expected `}' at end
> of input
> make[2]: *** [src/http/CMakeFiles/wthttp.dir/Server.o] Error 1
> make[1]: *** [src/http/CMakeFiles/wthttp.dir/all] Error 2
> make: *** [all] Error 2
>
Just hit the same problem yesterday too -- I think it is because
although you have a recent boost (that includes asio), you are
actually using a non-boost asio (that might be older?).
The following fixes the build problem, but I would recommend to remove
the non-boost asio anyway.
Regards,
koen
diff --git a/src/http/Server.C b/src/http/Server.C
index 5ca1da6..5ce246d 100644
--- a/src/http/Server.C
+++ b/src/http/Server.C
@@ -281,7 +281,7 @@ void Server::select_read(int descriptor)
asio::placeholders::error,
asio::placeholders::bytes_transferred, Read));
- } catch (boost::system::system_error &e) {
+ } catch (asio_system_error &e) {
std::cerr << e.what() << std::endl;
} catch (std::exception &e) {
std::cerr << "other error" << std::endl;
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest