Silverfrost Forums

Welcome to our forums

Can't use ftn95 to create win32 application

8 Jan 2016 5:07 #17121

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

9 Jan 2016 9:27 #17122

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.

11 Jan 2016 2:44 #17127

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.

12 Jan 2016 7:07 #17128

It might be in C:\Windows\SysWOW64.

13 Jan 2016 7:43 #17133

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.

Please login to reply.