Maker Pro
Maker Pro

MPLAB Compile Error

M

Mike Lantz

Jan 1, 1970
0
I have writen a few programs for PICs but I have encountered an error that I
have not seen before. I was unable to locate this error in the help when I
compile my program. The error is as followed:

ERROR[125] Illegal condition (EOF encountered before END or conditional end
directive)

I made sure that I have "END" at the end of my asm file. Wondering if
anyone has encountered this before?
What would cause a conditional end directive??

Regards

Mike
 
T

Tim H.

Jan 1, 1970
0
Hello,

Mike Lantz said:
I have writen a few programs for PICs but I have encountered an error that I
have not seen before. I was unable to locate this error in the help when I
compile my program. The error is as followed:

ERROR[125] Illegal condition (EOF encountered before END or conditional end
directive)

I made sure that I have "END" at the end of my asm file. Wondering if
anyone has encountered this before?
What would cause a conditional end directive??

Alright, if you have "END" at the end of your program, then the latter
portion of the statement must be true. Do you have any conditional branches
in your program (e.g., #ifdef, #ifndef, etc.)? If so, they must have their
closing #endif remarks.

-Tim
 
M

Mike Lantz

Jan 1, 1970
0
I got it working!!! I downloaded the latest version of MPLAB, build the
same ASM file and still had the same error. I removed the "END" from the
ASM file build again, error of course. I then added the "END" back to the
file and build it again and it worked!! Go figure eh?

Thanks for your help

Regards

Mike
Tim H. said:
Hello,

Mike Lantz said:
I have writen a few programs for PICs but I have encountered an error
that
I
have not seen before. I was unable to locate this error in the help
when
I
compile my program. The error is as followed:

ERROR[125] Illegal condition (EOF encountered before END or conditional end
directive)

I made sure that I have "END" at the end of my asm file. Wondering if
anyone has encountered this before?
What would cause a conditional end directive??

Alright, if you have "END" at the end of your program, then the latter
portion of the statement must be true. Do you have any conditional branches
in your program (e.g., #ifdef, #ifndef, etc.)? If so, they must have their
closing #endif remarks.

-Tim
Regards

Mike
 
D

david

Jan 1, 1970
0
does the end need to be in first column to work ??
David
Mike Lantz said:
I got it working!!! I downloaded the latest version of MPLAB, build the
same ASM file and still had the same error. I removed the "END" from the
ASM file build again, error of course. I then added the "END" back to the
file and build it again and it worked!! Go figure eh?

Thanks for your help

Regards

Mike
Tim H. said:
Hello,

Mike Lantz said:
I have writen a few programs for PICs but I have encountered an error
that
I
have not seen before. I was unable to locate this error in the help
when
I
compile my program. The error is as followed:

ERROR[125] Illegal condition (EOF encountered before END or
conditional
end
directive)

I made sure that I have "END" at the end of my asm file. Wondering if
anyone has encountered this before?
What would cause a conditional end directive??

Alright, if you have "END" at the end of your program, then the latter
portion of the statement must be true. Do you have any conditional branches
in your program (e.g., #ifdef, #ifndef, etc.)? If so, they must have their
closing #endif remarks.

-Tim
Regards

Mike
 
D

david

Jan 1, 1970
0
nope just tried it . can you recreate the problem or has it gone for good
??
david said:
does the end need to be in first column to work ??
David
Mike Lantz said:
I got it working!!! I downloaded the latest version of MPLAB, build the
same ASM file and still had the same error. I removed the "END" from the
ASM file build again, error of course. I then added the "END" back to the
file and build it again and it worked!! Go figure eh?

Thanks for your help

Regards

Mike
Tim H. said:
Hello,

I have writen a few programs for PICs but I have encountered an
error
that
I
have not seen before. I was unable to locate this error in the help when
I
compile my program. The error is as followed:

ERROR[125] Illegal condition (EOF encountered before END or conditional
end
directive)

I made sure that I have "END" at the end of my asm file. Wondering if
anyone has encountered this before?
What would cause a conditional end directive??

Alright, if you have "END" at the end of your program, then the latter
portion of the statement must be true. Do you have any conditional branches
in your program (e.g., #ifdef, #ifndef, etc.)? If so, they must have their
closing #endif remarks.

-Tim


Regards

Mike
 
A

A.M.

Jan 1, 1970
0
By any chance did you paste the END in the first time? Just
wondering... I was doing some C code with MPLAB and tracked an error to
an IF statement that didn't read correctly (could tell by the color of
the text). Deleting the line, which had been pasted from a text
processor, and retyping it verbatim solved the problem.
 
N

Niels Damsgaard-Sørensen

Jan 1, 1970
0
A.M. wrote: By any chance did you paste the END in the first time? (cut)

I have seen this error numerous times with the second-last edit of MPLAB (dont recall the ver.nr). When you copy and paste, parts of the code simply wont work. Then - if you try again - you dont have to write it manually, just paste again - it works. Wonder if Microchip had this made up by Microsoft ;-)

Niels
 
A

A.M.

Jan 1, 1970
0
I see... it's just another undocumented 'feature'! :)
 
T

tonewtoknow

Jan 1, 1970
0
Hi Mike,

I have seen this error or one simliar if you edit create the source on a
system that uses a newline (e.g *nix) as opposed to a newline/
carrige-return for the terminators. Later, when you say you added the
end directive and it work, I suspect you adde the end from the mplab
editor.

Regards,

Johann
 
Top