View previous topic :: View next topic |
Author |
Message |
peter
Joined: 24 Feb 2012 Posts: 3
|
Posted: Fri Feb 24, 2012 10:32 pm Post subject: LINK : error : Main program not permitted in DLL |
|
|
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 |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Sat Feb 25, 2012 9:16 am Post subject: |
|
|
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 |
|
 |
peter
Joined: 24 Feb 2012 Posts: 3
|
Posted: Sat Feb 25, 2012 12:38 pm Post subject: |
|
|
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 |
|
 |
davidb
Joined: 17 Jul 2009 Posts: 560 Location: UK
|
Posted: Sat Feb 25, 2012 4:09 pm Post subject: |
|
|
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 |
|
 |
peter
Joined: 24 Feb 2012 Posts: 3
|
Posted: Sat Feb 25, 2012 7:01 pm Post subject: |
|
|
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 |
|
 |
|