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

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
stfark1



Joined: 02 Sep 2008
Posts: 225

PostPosted: Mon Oct 28, 2024 7:39 pm    Post subject: C++ Link Reply with quote

I have a large Fortran progrqm and I want to build the executable routine with a c++ program output module, how canthis be accomplished? Sid Kraft
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 1238
Location: Morrison, CO, USA

PostPosted: Mon Oct 28, 2024 11:10 pm    Post subject: Reply with quote

I've done quite a bit of mixed-mode using FTN95. I'm not sure what you are referring to as "C++ output module".

Do you mean that all output from FTN95 program units uses the C++ pre-defined units?

A bit more detail would be most helpful.

I have "C" routines that I call from Fortran (some then call "C++" routines), and, although I have not yet needed to, it is certainly possible to call FTN95 from "C" or "C++".
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Tue Oct 29, 2024 8:11 am    Post subject: Reply with quote

For a Win32 application, calling C/C++ from FTN95 is described in the help manual (FTN95.chm) under Win32 platform->Mixed language programming->Calling FTN95 from C/C++.

In principle you can do the same for an x64 application but in this case the C++ compiler (SCC) has some limitations, is not supported and does not currently have debugging options.

As a general rule, you should only use mixed language programming if you need to perform some task that is not possible in Fortran.
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 -> 64-bit 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