|
From: Random Programmer on 2 Nov 2005 11:43 Hi guys. Following some advice I got to keep the "Implicit none" statement in my programs, I've found that it conflicts with the "systemqq" command. The error I get is: Error: This name does not have a type, and must have an explicit type. [SYSTEMQQ] result = systemqq('test') Commenting out the "Implicit None" stops the error from occuring. What causes this and how do I avoid it? Thanks.
From: Lynn McGuire on 2 Nov 2005 11:47 > Error: This name does not have a type, and must have an explicit type. > [SYSTEMQQ] > result = systemqq('test') > > Commenting out the "Implicit None" stops the error from occuring. What > causes this and how do I avoid it? Just declare a type for systemqq, like: integer systemqq external systemqq Lynn
From: Duane Bozarth on 2 Nov 2005 11:54 Random Programmer wrote: > > Hi guys. Following some advice I got to keep the "Implicit none" > statement in my programs, I've found that it conflicts with the > "systemqq" command. > > The error I get is: > > Error: This name does not have a type, and must have an explicit type. > [SYSTEMQQ] > result = systemqq('test') > > Commenting out the "Implicit None" stops the error from occuring. What > causes this and how do I avoid it? > systemqq is a CVF-supplied routine. It appears you have referenced it w/o including the USE DFLIB line per the documentation. That module includes the necessary declaration for the routine. Lynn's suggestion will eliminate the error message but won't provide the interface as USEing the module will...
From: Duane Bozarth on 2 Nov 2005 12:02 Lynn McGuire wrote: > > > Error: This name does not have a type, and must have an explicit type. > > [SYSTEMQQ] > > result = systemqq('test') > > > > Commenting out the "Implicit None" stops the error from occuring. What > > causes this and how do I avoid it? > > Just declare a type for systemqq, like: > > integer systemqq > external systemqq systemqq() actually returns a logical, but unless you have CVF there's no reason you would know that... :) "USE DFLIB" will include the necessry information.
From: Random Programmer on 2 Nov 2005 19:12 Thanks guys :-) "logical systemqq" worked. About the "use dflib" line, where in the code do I put it? Sounds like a dumb question but I did look up "use". Error: This USE statement is not positioned correctly within the scoping unit. use dflib
|
Next
|
Last
Pages: 1 2 Prev: Gauss-Lobatto Quadrature over a Tetrahedron Next: DATA statement in g77 |