replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - LINK : error : Main program not permitted in DLL
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 

LINK : error : Main program not permitted in DLL

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



Joined: 24 Feb 2012
Posts: 3

PostPosted: Fri Feb 24, 2012 10:32 pm    Post subject: LINK : error : Main program not permitted in DLL Reply with quote

I have been using Silverfrost FTN95 Express for a few days now and it�s been absolutely fine on my Windows 7 environment.
After closing down the app & returning to it today I now get the following message when I execute a program (these same programs worked before):

�unable to start debugging for target: C:\users\....\Silverfrost FTN95 Express\FotranApplicationExtension4\FotranApplicationExtension4\Debug\NET\ FotranApplicationExtension4.dll�

I have not made any changes to my PC

It also states:

"Compiling file: FreeFormat1.f95
Linking...
LINK : error : Main program not permitted in DLL"

This is happening to programs which would have previously worked fine.

I have tried uninstalling Silverfrost FTN95 Express and doing a clean instillation but it still has the same problem.

If anyone has a solution for this I would be very grateful.

P
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Sat Feb 25, 2012 9:16 am    Post subject: Reply with quote

It looks like you have a Plato project and that it is creating a DLL when you expect an executable. If this is the case then change the target using "Set Target" in the main Project menu.
Back to top
View user's profile Send private message AIM Address
peter



Joined: 24 Feb 2012
Posts: 3

PostPosted: Sat Feb 25, 2012 12:38 pm    Post subject: Reply with quote

Thanks for your speedy reply and yes you are correct, unfortunately not quite plain sailing yet. Not sure if I was doing the right thing.

I went to the project dropdown, properties, compiler options, miscellaneous and changed output filetype from DLL to EXE and still get the same message as above. I have searched for other options but had no luck.
Back to top
View user's profile Send private message
davidb



Joined: 17 Jul 2009
Posts: 560
Location: UK

PostPosted: Sat Feb 25, 2012 4:09 pm    Post subject: Reply with quote

Hi peter,

The option is under menu item "Project" then choose "Set Target..."

David.
_________________
Programmer in: Fortran 77/95/2003/2008, C, C++ (& OpenMP), java, Python, Perl
Back to top
View user's profile Send private message
peter



Joined: 24 Feb 2012
Posts: 3

PostPosted: Sat Feb 25, 2012 7:01 pm    Post subject: Reply with quote

Okay this may have seemed like the dumbest query but I am very new to ft95.

Thanks its sorted. I just decided to start using it for maths and modelling problems at college.

Peter
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 -> Support 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