build problem

General discussion on mikroC PRO for 8051.
Post Reply
Author
Message
wishes
Posts: 2
Joined: 09 Jul 2010 16:40
Contact:

build problem

#1 Post by wishes » 12 Oct 2010 12:34

Hi all,

I am trying to build a program for AT89C51 atmel for serial communication but i get the following errors in the picture
attached

please i need to know an answer
Attachments
Untitled.png
Untitled.png (152.04 KiB) Viewed 9019 times

KaranSoin
Posts: 130
Joined: 07 May 2010 22:27
Location: Melbourne, Australia

Re: build problem

#2 Post by KaranSoin » 12 Oct 2010 19:29

I dont think the compiler allows you to initialize global variables outside a functions, might want to try without it.

cheers

User avatar
slavisa.zlatanovic
mikroElektronika team
Posts: 1321
Joined: 07 Apr 2009 09:39

Re: build problem

#3 Post by slavisa.zlatanovic » 13 Oct 2010 08:56

Hi!

See Help file ----> Accessing Individual Bits.

Especially, this note:

Bit variables can not be initialized.
Bit variables can not be members of structures and unions.
Bit variables do not have addresses, therefore unary operator & (address of) is not applicable to these variables.
Best regards
Slavisa

Post Reply

Return to “mikroC PRO for 8051 General”