View previous topic :: View next topic |
Author |
Message |
rockfortran
Joined: 26 Oct 2010 Posts: 3
|
Posted: Mon Dec 13, 2010 9:42 am Post subject: Can FTN95 work with VC6.0? |
|
|
Hello All,
I create a static library with FNT95, but it cannot work with VC6.0.
The function declare in VC6.0 is right.
Are there some special settings?
Any suggestions or tips are helpful.
Thank you in advance. |
|
Back to top |
|
 |
Robert

Joined: 29 Nov 2006 Posts: 460 Location: Manchester
|
Posted: Tue Dec 14, 2010 11:24 pm Post subject: |
|
|
In general (and with VC6.0 in particular) you would be better calling FTN95 routines via DLL. The problem is the C Runtime. FTN95 requires 'ours'. VC wants to link against 'theirs'. |
|
Back to top |
|
 |
rockfortran
Joined: 26 Oct 2010 Posts: 3
|
Posted: Thu Dec 16, 2010 6:44 am Post subject: |
|
|
Thank you, Robert.
In the project settings, we cannot ignore some lib files.
e.g: we can ignore libc.lib,msvcrt.lib when using VC6.0 and CVF6.5.
but if I create a DLL project, FTN95 cannot create a shared library file at the same time.
Also I want to hide the calling of Fortran. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8255 Location: Salford, UK
|
Posted: Thu Dec 16, 2010 8:06 am Post subject: |
|
|
If you need to use a static rather than a dynamic library then consider trying the Silverfrost C++ compiler SCC instead. |
|
Back to top |
|
 |
rockfortran
Joined: 26 Oct 2010 Posts: 3
|
Posted: Thu Dec 16, 2010 8:51 am Post subject: |
|
|
Thank you, Paul.
I will give it a try. |
|
Back to top |
|
 |
|