[TAG] help

Jimmy O'Regan jimregan at o2.ie
Sun Jan 22 17:20:20 MSK 2006


Thomas Adam wrote:
> So now the error.  I haven't looked at this Makefile.  I haven't even
> looked at the code.  I can't be bothered to, although I suspect on this
> occasion, the error is one of CR/LF of the Makefile itself, of which the
> following command ought to sort that:

I looked at the code. It needs this patch to compile, at least with the 
versions of gcc I tried:

==== SNIP HERE tougher.diff.txt =====
diff -ur orig/Socket.cpp ./Socket.cpp
--- orig/Socket.cpp	2002-08-14 15:28:21.000000000 -0700
+++ ./Socket.cpp	2006-01-22 06:04:12.000000000 -0800
@@ -2,7 +2,7 @@


  #include "Socket.h"
-#include "string.h"
+#include <iostream>
  #include <string.h>
  #include <errno.h>
  #include <fcntl.h>
diff -ur orig/simple_server_main.cpp ./simple_server_main.cpp
--- orig/simple_server_main.cpp	2002-08-14 15:28:21.000000000 -0700
+++ ./simple_server_main.cpp	2006-01-22 06:06:10.000000000 -0800
@@ -1,6 +1,7 @@
  #include "ServerSocket.h"
  #include "SocketException.h"
  #include <string>
+#include <iostream>

  int main ( int argc, int argv[] )
  {
===== SNIP HERE =====

Can't see any problem with the Makefile as published though.





More information about the TAG mailing list