View previous topic :: View next topic |
Author |
Message |
jmer Guest
|
Build failed but 0 errors 0 warnings and hex file generated |
Posted: Sun Sep 28, 2008 10:08 am |
|
|
MPLAB gives an Build failed message
but there is 0 errors 0 warnings and an hex file is generated.
What's wrong ? |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Sun Sep 28, 2008 11:44 am |
|
|
Did you install the CCS C MPLAB plugin?
The MPLAB build options for CCS C may be incorrect. |
|
|
jmer Guest
|
|
Posted: Sun Sep 28, 2008 3:39 pm |
|
|
If I start from a project that build successfully.
If I save the source file with a new name, remove the source file from the project, add the new named file in the project as the source and compile it, I have the problem.
Nothing else changed except the name of the source file. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Sep 28, 2008 3:55 pm |
|
|
I just did that and it works fine. I saved "PCH_Test.c" as "PCH_Test2.c"
and removed the first one from the MPLAB project. Then I added the
new file to the project and compiled it. It worked OK.
I've seen your problem before. I think I solved it by re-installing the
compiler. |
|
|
Guest
|
|
Posted: Sun Sep 28, 2008 6:30 pm |
|
|
If I copy a folder containing a known good program to drive c:
If I make it using F10, the program compiles sucessfully.
Then if I clean the program using Project Clean, the compiler complains that source.o is missing. There was no source.o before using Clean!
Then if I make it using F10, now I got build failed, but hex file is generated and no errors are reported.
I can repeat this on my laptop and on my desktop.
So Clean doesn't seem to be too clean! |
|
|
Indy31 Guest
|
|
Posted: Mon Sep 29, 2008 1:30 am |
|
|
What is the version number of your MPLAB? |
|
|
jmer Guest
|
|
Posted: Mon Sep 29, 2008 5:12 am |
|
|
I use Version 8.10
But this was a problem in earlier version 8.0 and even before that |
|
|
jmer Guest
|
|
Posted: Mon Sep 29, 2008 6:39 pm |
|
|
I reinstalled mplab plug-in, then reinstalled the compiler and it solved the problem. (not the other way around,) |
|
|
|