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 

Can't use ftn95 to create win32 application

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
hfli999



Joined: 06 Jul 2015
Posts: 2

PostPosted: Fri Jan 08, 2016 6:07 pm    Post subject: Can't use ftn95 to create win32 application Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Sat Jan 09, 2016 10:27 am    Post subject: Reply with quote

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
View user's profile Send private message
hfli999



Joined: 06 Jul 2015
Posts: 2

PostPosted: Mon Jan 11, 2016 3:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Jan 12, 2016 8:07 am    Post subject: Reply with quote

It might be in C:\Windows\SysWOW64.
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 1994
Location: Sydney

PostPosted: Wed Jan 13, 2016 8:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General 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