View previous topic :: View next topic |
Author |
Message |
ming
Joined: 02 Mar 2010 Posts: 1
|
Posted: Wed Mar 03, 2010 5:23 pm Post subject: SCC compiler questions |
|
|
Dear experts,
I have few questions about the C/C++ compiler SCC. The first one when I tried a simple C++ program (shown below) using either Plato IDE or command line, I always got an error.
C:\TEMP\ONLYC\ONLYC.CPP(3) : error 199 - 'using' found where a type specifier was expected
*** Compilation failed
Any ideas? I also found I need to use capital case "IOSTREAM.H". The lower case does not work. I did not see this documented in SCC.hlp.
My goal is to do mix languages (Fortran/C/C++). I actually encountered a few errors when I tried to compile a real C++ code, but I don't know how to understand these errors since it seems SCC.hlp does not explain each of compile errors (plus I am not familiar with C++).
Thanks,
Ming
-----------------------------------------------
#include <IOSTREAM.H>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
} |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Wed Mar 03, 2010 6:32 pm Post subject: |
|
|
"using" and namespaces are not supported by SCC.
These were not part of the C++ standard when SCC was written.
File names are not case sensitive in a Windows environment. |
|
Back to top |
|
 |
|