Software Archive
Read-only legacy content
17060 Discussions

In problem using mixed language

Intel_C_Intel
Employee
480 Views
I really appriciate Steve for giving me advice.
..
And I have two questions about his advices.
First He said "You could link in objects and libraries created by PowerStation in a VC++ 6.0 project" , He means dll file created by PowerStation 4.0 can be used in VC++6.0 ?
Second, He said "you would have to build the Fortran components separately".
I don't know exactly how should I do?

I'm sorry I make you to be troublesome.
0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
480 Views
This means, you can use .obj, .lib and/or .dll files created by PowerStation in VC, but you have to compile them using FPS compiler and IDE. The simplest way is to just insert .obj files created by FPS into VC project (of course, you'll have to also write a .h file containing declarations of fortran functions, they all should be extern "C" __stdcall). You can also
create a "static library" project in FPS and insert the resulting .lib file into
VC project. Finally, you can create a "DLL" project in FPS and insert the
resulting .lib (not dll) into VC project.
Everything said is also valid if you want to make FPS "frame" project, i.e.
you should be able to insert VC .obj files into FPS project. However, i'm not
sure if that would work due to "forward compatibility", i.e. if MS changed their .obj format since 1995.

Jugoslav
0 Kudos
Steven_L_Intel1
Employee
480 Views
No - don't try to insert VC++ 6 objects or libraries into an FPS project. You'll get bizarre linker errors, because MS did change the object format.

Steve
0 Kudos
Reply