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

This commit is contained in:
Brad King 2003-06-04 09:00:36 -04:00
parent 904fb91a42
commit 9ccc27864e
1 changed files with 3 additions and 2 deletions

View File

@ -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