replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - C++ query
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 

C++ query

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



Joined: 10 Sep 2006
Posts: 146
Location: United Kingdom

PostPosted: Sat Feb 01, 2025 10:33 am    Post subject: C++ query Reply with quote

Hello

I primarily code in Fortran, but just out of interest I wanted to try the C++ compiler (SCC) via command line and Plato, but cannot get it to work using the easy code below:

Code:
// Your First C++ Program

#include <iostream>

int main() {
    std::cout << "Hello World!";
    return 0;
}


It returns a compile error:

Code:
Compiling and linking file hw1.cpp using SCC.
C:\TEMP\HW1.CPP(3) : fatal 4 - Include file iostream cannot be opened
*** Compilation failed
Compilation or linking failed.


The include files sit under FTN95 and Fortran has no issues looking for MOD files there

....Silverfrost\FTN95\include

I am sure it is something simple! A basic query I know.

SCC version 4.61, Plato 6.01

Thanks

Lester
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Sat Feb 01, 2025 10:59 am    Post subject: Reply with quote

Some changes are required for Win32 whilst iostream is not currently supported for x64.

Code:
#include <iostream.h>

int main() {
    cout << "Hello World!";
    return 0;
}
Back to top
View user's profile Send private message AIM Address
arctica



Joined: 10 Sep 2006
Posts: 146
Location: United Kingdom

PostPosted: Sat Feb 01, 2025 12:55 pm    Post subject: Reply with quote

Thanks for the information Paul, got things working.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General 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