What is an 'endif_319 not found' error

Coding and general discussion relating to user created compiler modules

Moderators: David Barker, Jerry Messina

Post Reply
MichaelL
Posts: 16
Joined: Fri Jan 16, 2009 3:52 pm
Location: Germany

What is an 'endif_319 not found' error

Post by MichaelL » Wed Apr 22, 2009 8:42 am

I am using the SD (4.1.4) library. When I added a SD.Filesize call I am getting the above mentioned error when compiling.
Does anyone have an idea what it is and more important how to fix it?
Michael

CharlieM
Registered User
Registered User
Posts: 211
Joined: Wed Oct 10, 2007 12:05 am

Post by CharlieM » Wed Apr 22, 2009 11:45 am

Hi MichaelL,

It may not have anything to do with the SD.Filesize call.Can you post your code?
Running version 2.2.4.0 ICC 1.2.1.0
Regards CharlieM

MichaelL
Posts: 16
Joined: Fri Jan 16, 2009 3:52 pm
Location: Germany

Post by MichaelL » Wed Apr 22, 2009 11:48 am

Here we go:
Sub Send_Dir_extended()
Dim ReturnString As String * 13
Dim FileSizeValue As LongWord
FileSizeValue = 0
ReturnString = "FirstTry"
While ReturnString <>""
SD.ChDir(cdRoot)
ReturnString = Dir(dirNext,sdDirectory)
If ReturnString = "" Then Exit EndIf
USART.Write(ReturnString)
SD.ChDir(ReturnString)
ReturnString = Dir(dirNext,sdFile)
If ReturnString <> "" Then
Repeat
USART.Write(ReturnString)
SD.OpenFile(ReturnString)
FileSizeValue = SD.FileSize()
USART.WriteLongWord(SD.FileSize)
SD.CloseFile
ReturnString = Dir(dirNext,sdFile)
Until ReturnString = ""
EndIf
SD.ChDir(cdRoot)
ReturnString = Dir(dirNext,sdDirectory)
Wend
End Sub

MichaelL
Posts: 16
Joined: Fri Jan 16, 2009 3:52 pm
Location: Germany

Post by MichaelL » Thu Apr 23, 2009 3:55 pm

It seems that CharlieM idea is true. It does not directly have to do with the SD.Filesize command. When I copy my code to a new file everything compiles well until I copy a conditional statement which calls a sub. Any reference to this specific sub brings the ENDIF_nnn not found error (in fact it gives in addition some FALSE_nnn errors, too)(nnn represents a number).
Any idea?

CharlieM
Registered User
Registered User
Posts: 211
Joined: Wed Oct 10, 2007 12:05 am

Post by CharlieM » Thu Apr 23, 2009 10:26 pm

Hi MichaelL,

Can youpost the declares and the whole thinig?
Running version 2.2.4.0 ICC 1.2.1.0
Regards CharlieM

Post Reply