It is currently 25 Feb 2018 00:35

All times are UTC + 1 hour

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 10 Sep 2017 16:53 

Joined: 10 Sep 2017 16:04
Posts: 1
Hi there,

I need help trying to download and install stdio.h library on my mikroC pro, because I am unable to use features like declaring int,chart, float,etc. When I write down #include <avr/io.h> on my program and then trying to building it, the first error that comes out pointing it is this! .It Looks like some library is missing in my fully license mikroC (for AVR 32) development environment.

Doc1.docx [202.01 KiB]
Downloaded 24 times
PostPosted: 11 Sep 2017 16:31 
mikroElektronika team
User avatar

Joined: 15 Jan 2016 12:50
Posts: 1715

Welcome to the MikroE forum.

You will need to define variables before main function
or at the beginning of main function.

Also, since name 'z' is already used, you can try to modify your code
for example on this way:
unsigned int z1;
void main() {
  DDRB = 0xFF;           // Set direction to be output
      PORTB = 0xAA;
      for(z1 = 0; z1 < 200; z1++){
          PORTB = ~PORTB;

You can include files from Include folder in the installation folder of the compiler,
which is located in for example:

c:\Users\Public\Documents\Mikroelektronika\mikroC PRO for AVR\Include\

When you are using file which is not in Include folder,
you can include them manually with specified path,
you can take a look in Help file for File Inclusion.

Kind regards,

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour

Who is online

Users browsing this forum: No registered users and 1 guest

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 post attachments in this forum

Search for:
Jump to: