CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Build failed but 0 errors 0 warnings and hex file generated

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jmer
Guest







Build failed but 0 errors 0 warnings and hex file generated
PostPosted: Sun Sep 28, 2008 10:08 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Sep 28, 2008 11:44 am     Reply with quote

Did you install the CCS C MPLAB plugin?
The MPLAB build options for CCS C may be incorrect.
jmer
Guest







PostPosted: Sun Sep 28, 2008 3:39 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Sep 28, 2008 3:55 pm     Reply with quote

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








PostPosted: Sun Sep 28, 2008 6:30 pm     Reply with quote

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







PostPosted: Mon Sep 29, 2008 1:30 am     Reply with quote

What is the version number of your MPLAB?
jmer
Guest







PostPosted: Mon Sep 29, 2008 5:12 am     Reply with quote

I use Version 8.10
But this was a problem in earlier version 8.0 and even before that
jmer
Guest







PostPosted: Mon Sep 29, 2008 6:39 pm     Reply with quote

I reinstalled mplab plug-in, then reinstalled the compiler and it solved the problem. (not the other way around,)
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group