View Full Version : Cannot compile and run examples
LNSSoftware
02-28-2006, 11:44 PM
I have Lahey Fortran Enterprise and I am trying to start and execute the example Weather. I'm running version 7.10.02, and when I do a build it generates a number of errors like:
Error FRT1736: 'Brush' cannot be referenced; it is specified in more than one module or refers to more than one entity.
Don't know how to resolve.
Lahey Support
03-17-2006, 12:43 AM
Sorry but I can't determine the cause from the information provided.
Are all the .NET prerequisites installed? IIS and the .NET Framework?
Can you build any of the .NET examples?
pprajan
06-07-2006, 05:14 AM
I have also got similar error message when trying to create a simple windows form application.
Other details:
OS : Windows 2000 SP4 with all the security patches
IDE : Microsoft Visual Studio .NET 2003
.NET Framework SDK v1.1
LF : Lahey Fortran Enterprise version 7.1 (Trial Version)
Error Message :
C:\Form1.f95(7): error FRT1736: 'System.ComponentModel.Container' cannot be referenced; it is specified in more than one module or refers to more than one entity.
Is the error message, due to trial version of the software ?.
wwuser
04-23-2007, 01:42 PM
I´m also a victim of similar error messages when trying to create a simple windows form application.
My enviroment:
OS : Windows 2003 Server SP1 with all the security patches and IIS
IDE : Microsoft Visual Studio .NET 2003 with VB, C#, C++ and
LF : Lahey Fortran Enterprise version 7.10.02 (Trial Version)
.NET Framework SDK v1.1
.NET Framwork 2.0
None of the examples (except Hello World) will run.
Error Messages (a lot of them, depending on windows form usage) :
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(46): error FRT1736: 'Color' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(282): error FRT1736: 'Graphics' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(284): error FRT1736: 'Font' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(287): error FRT1736: 'SizeF' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(289): error FRT1736: 'SolidBrush' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(390): error FRT1736: 'Graphics' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(391): error FRT1736: 'Color' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(393): error FRT1736: 'Pen' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(417): error FRT1736: 'Graphics' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(418): error FRT1736: 'Color' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(420): error FRT1736: 'Pen' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(421): error FRT1736: 'Brush' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(422): error FRT1736: 'Font' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(423): error FRT1736: 'StringFormat' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(426): error FRT1736: 'SizeF' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(431): error FRT1736: 'SolidBrush' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(433): error FRT1736: 'StringFormatFlags' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(481): error FRT1736: 'Graphics' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(486): error FRT1736: 'Pen' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(487): error FRT1736: 'Brush' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(488): error FRT1736: 'Font' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(489): error FRT1736: 'StringFormat' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(492): error FRT1736: 'SizeF' cannot be referenced; it is specified in more than one module or refers to more than one entity.
C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Examples\VisualStudio\Weather\Weather Data.f95(497): error FRT1736: 'SolidBrush' cannot be referenced; it is specified in more than one module or refers to more than one entity.
Any Hints?
tzeis
04-23-2007, 06:20 PM
It sounds like you need to read this: Making LF 7.1 .NET Work Side by Side with .NET 2.0/VS2005.
A note about the weather example - it was intended to show how you could grab data off of a website, in this case a NWS page showing weather data for Slide Mountain, Nevada. However, it also demonstrates the weakness of doing this: if the publisher changes the page layout, the program can break. It will still display a cached page when you get it to work, but it won't be live.
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.