Silverfrost Forums

Welcome to our forums

LINK : error : Main program not permitted in DLL

24 Feb 2012 9:32 #9686

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

25 Feb 2012 8:16 #9691

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.

25 Feb 2012 11:38 #9693

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.

25 Feb 2012 3:09 #9700

Hi peter,

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

David.

25 Feb 2012 6:01 #9703

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

Please login to reply.