View previous topic :: View next topic |
Author |
Message |
hfli999
Joined: 06 Jul 2015 Posts: 2
|
Posted: Fri Jan 08, 2016 6:07 pm Post subject: Can't use ftn95 to create win32 application |
|
|
I am trying FTN95 personal edition v7.20 with the following sample code
!FTN95 application...
PROGRAM main
INTEGER k
PRINT*, 'Type an integer value then press ENTER'
READ*, k
PRINT*, 'Your value is ', k
END PROGRAM main
I can build .net (checkmate, debug and release) and release X64 (after download gfortran) but not any win32 application.
The build output:
Compilation completed with no errors.
Linking...
*** Unknown object type: C:\Windows\system32\glut32.dll
Any thing I missed?
Thanks
Haifang Li |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Sat Jan 09, 2016 10:27 am Post subject: |
|
|
This is a strange error report particularly for this program that does not use OpenGL.
It looks like you have glut32.dll (which you do not need for this program) on your machine but in the wrong folder. If this is the case then SLINK is finding it but then produces an error report because it turns out to be a 64 bit dll rather than a the 32 bit dll that it is looking for.
If this is the case and you don't need glut32.dll for other applications then removing glut32.dll or temporarily changing its name should fix the problem. |
|
Back to top |
|
|
hfli999
Joined: 06 Jul 2015 Posts: 2
|
Posted: Mon Jan 11, 2016 3:44 pm Post subject: |
|
|
Thanks for replying my message.
I don't have glut32.dll in any folder in my PTAH especially don't have glut32.dll in c:\windows\system32.
For now, I will compile my code to 64 bit. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Tue Jan 12, 2016 8:07 am Post subject: |
|
|
It might be in C:\Windows\SysWOW64. |
|
Back to top |
|
|
JohnCampbell
Joined: 16 Feb 2006 Posts: 2554 Location: Sydney
|
Posted: Wed Jan 13, 2016 8:43 am Post subject: |
|
|
I presume you are using Plato, where Win32 is the basic build for FTN95. It should work, using only salflibc.dll.
You should check your (default?) build settings, as the example program you posted should not be selecting glut32.dll when linking. |
|
Back to top |
|
|
|