Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

gcc problem

2008-02-28 by Tom

I am using avrgcc 4.2.1 through AVRStudio 4.13 Service Pack 1. 

I am getting a frustrating compiler error:

in line 38:


main (

I am getting:

error: unexpected '=', ' ,' , ', ' , ';',  'asm' or '_attribute_" before 
'{' token


Problem is the only lines prior to this line  in the code are comments 
and two includes, explicitly:


#include <stdint.h>
#include <string.h>


   So, am I to assume there is an error in one of these two include files?

   This is my first attempt at using C on an AVR, and I am flummoxed.


avrFreak

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.