Browse Source

ERR: Cannot use iostream.h for strict C++ compiler sanity check. Using a small class instead.

Brad King 22 years ago
parent
commit
9ccc27864e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      bootstrap

+ 3 - 2
bootstrap

@@ -267,10 +267,11 @@ fi
 # Check if C++ compiler works
 TMPFILE=`cmake_tmp_file`
 cat>"${TMPFILE}.cxx"<<EOF
-#include<iostream.h>
+#include <stdio.h>
+class NeedCXX {};
 int main()
 {
-  cout << 1 << endl;
+  printf("1\n");
   return 0;
 }
 EOF