Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » make: *** [main.rel] Error 1(SDCC environment with Eclipse IDE for MCS51)
make: *** [main.rel] Error 1 [message #1808345] Fri, 21 June 2019 18:19
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();
}

}


Previous Topic:Unable to open Eclipse Marketplace in Eclipse Jee 2019-03
Next Topic:Build [ERROR] Invalid extension descriptor for org.eclipse.tycho:tycho-maven-plugin:0.20.0
Goto Forum:
  


Current Time: Sat Nov 09 00:54:12 GMT 2024

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

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

Back to the top