Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » make: *** [main.rel] Error 1 (SDCC environment with Eclipse IDE for MCS51)
make: *** [main.rel] Error 1 [message #1808351] Fri, 21 June 2019 19:52 Go to next message
ET123 Tan is currently offline ET123 TanFriend
Messages: 2
Registered: June 2019
Junior Member
I am trying to run a simple C program on Eclipse using SDCC compiler that blinks the LED on my MCS51 board but I keep getting the error: make: *** [main.rel] Error 1
Can anyone advise me on how to fix this problem?

Here's my code:

#include <8051.h>

void delay()
{
int i,j;
for (i = 0;i<=100;i++)
for (j = 0;j<=100;j++);
}

void main()
{
while (1)
{
P1_0 =0; // led glow
delay();
P1_0 = 1; // led off
delay();
}

}
Re: make: *** [main.rel] Error 1 [message #1808361 is a reply to message #1808351] Sat, 22 June 2019 01:32 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
" make: *** [xxx] Error 1" simply means a make recipe has failed.

The real error is shown above it in the log.
So, what is needed is the complete log output

I see you've posted the same question at other sites.
Some consider that rude.
https://community.rstudio.com/t/faq-is-it-ok-if-i-cross-post/5218

Previous Topic:Unable to determine gdb-multiarch version
Next Topic:Multiple targets error
Goto Forum:
  


Current Time: Thu Apr 25 21:30:17 GMT 2024

Powered by FUDForum. Page generated in 0.03237 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top