[Swift-user] Compile Error

Jonathan Monette jon.monette at gmail.com
Tue Jun 22 15:22:04 CDT 2010


Here is a script that recreates the problem and the two files needed to 
run.  The line commented out is the Montage call but the error comes 
before the call.

On 6/22/10 3:13 PM, Mihael Hategan wrote:
> I may have sent this before, but I think it's useful reading. Don't take
> it as meant to be patronizing. It's meant to clarify the perspective of
> the other end of a bug report.
>
> http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
>
>
> On Tue, 2010-06-22 at 15:04 -0500, Mihael Hategan wrote:
>    
>> I thought I replied to it, but is seems not.
>>
>> Yes, please post the exact script.
>>
>> Mihael
>>
>> On Tue, 2010-06-22 at 15:00 -0500, Michael Wilde wrote:
>>      
>>> Jon, can you try to re-create this problem in a simple Swift script?
>>>
>>> If so, Mihael, can you take a look and see if its a Swift error, and/or how to work around it?
>>>
>>> Thanks,
>>>
>>> Mike
>>>
>>> ----- "Jonathan Monette"<jon.monette at gmail.com>  wrote:
>>>
>>>        
>>>> Hello,
>>>>       I am getting a compile error and not sure how to fix it.
>>>>
>>>>           Could not start execution.
>>>>               Compile error in foreach statement at line 81: Type
>>>> DiffStruct is not defined.
>>>>
>>>>       I understand the error but I have defined DiffStruct at the top
>>>> of
>>>> the file.
>>>>           type DiffStruct
>>>>           {
>>>>               int cntl1;
>>>>               int cntl2;
>>>>               Image plus;
>>>>               Image minus;
>>>>               Image diff;
>>>>           }
>>>>
>>>>       I have also declared Image as a type.  Using Image gives me no
>>>> problems.  The line that the error comes on is:
>>>>
>>>>           foreach diff_entry, i in diffs
>>>>
>>>>       where diffs is an array of DiffStruct that was created using the
>>>>
>>>> csv_mapper.  Does anyone know what the problem is?  Thanks in
>>>> advance.
>>>>
>>>> -- 
>>>> Jon
>>>>
>>>> Computers are incredibly fast, accurate, and stupid. Human beings are
>>>> incredibly slow, inaccurate, and brilliant. Together they are powerful
>>>> beyond imagination.
>>>> - Albert Einstein
>>>>
>>>> _______________________________________________
>>>> Swift-user mailing list
>>>> Swift-user at ci.uchicago.edu
>>>> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user
>>>>          
>>>        
>>
>> _______________________________________________
>> Swift-user mailing list
>> Swift-user at ci.uchicago.edu
>> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user
>>      
>
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user
>
>    

-- 
Jon

Computers are incredibly fast, accurate, and stupid. Human beings are incredibly slow, inaccurate, and brilliant. Together they are powerful beyond imagination.
- Albert Einstein

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: problem_script.swift
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20100622/a224ffa2/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs.tbl
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20100622/a224ffa2/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: template.hdr
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20100622/a224ffa2/attachment-0002.ksh>


More information about the Swift-user mailing list