replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - SCC compiler questions
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SCC compiler questions

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
ming



Joined: 02 Mar 2010
Posts: 1

PostPosted: Wed Mar 03, 2010 5:23 pm    Post subject: SCC compiler questions Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8210
Location: Salford, UK

PostPosted: Wed Mar 03, 2010 6:32 pm    Post subject: Reply with quote

"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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group