Cool, you hit the great point.
After remove avrx.inc and rename avrx.a to libavrx.a to adapter AVR Studio and WinAvr constraint, it works fine now.
Great thanks!
Regards,
Simon
To: avrx@yahoogroups.com
From: tomdean1939@...
Date: Sun, 24 May 2009 04:42:36 +0000
Subject: [avrx] Re: AVRx on Arduino
--- In avrx@yahoogroups.com , gusimon <zm_gu@...> wrote:
> avr-gcc.exe -I"E:\AVRX\iMP3\..\RTOS\AvrX2.6g\avrx" -mmcu=atmega16 -Wall -gdwarf-2 -std=gnu99 -DF_CPU=8000000UL -O2 -funsigned-char -funsigned-bitfields -fshort-enums -MD -MP -MT Task_Def.o -MF dep/Task_Def.o.d -c ../Task/Task
> _Def.c
>
> In file included from ../Task/Task_Def.c:19:
> ../Task/../avrx.inc:302: error: expected identifier or '(' before '.' token
> ../Task/../avrx.inc:327: error: expected identifier or '(' before '.' token
> In file included from ../Task/Task_Def.c:20:
> ../Task/../avrx.h:113: error: expected identifier or '(' before numeric constant
> ../Task/../avrx.h:114: error: expected ';' before 'unsigned'
> ../Task/../avrx.h:125: error: expected identifier or '(' before numeric constant
> ../Task/../avrx.h:126: error: expected ';' before 'struct'
> ../Task/../avrx.h:171: error: expected identifier or '(' before numeric constant
> ../Task/../avrx.h:172: error: expected ';' before 'Mutex'
> ../Task/../avrx.h:206: error: expected identifier or '(' before numeric constant
> ../Task/../avrx.h:207: error: expected ';' before 'Mutex'
> ../Task/../avrx.h:374: error: expected identifier or '(' before numeric constant
> make: *** [Task_Def.o] Error 1
Looks like you are including avrx.inc and avrx.h in Task_Def.c. Should you only include avrx.h?
Á¢¿ÌÏÂÔØ MSN ±£»¤¶Ü£¬±£ÕÏMessenger °²È«Îȶ¨£¡ ÏÖÔÚ¾ÍÏÂÔØ£¡
After remove avrx.inc and rename avrx.a to libavrx.a to adapter AVR Studio and WinAvr constraint, it works fine now.
Great thanks!
Regards,
Simon
To: avrx@yahoogroups.com
From: tomdean1939@...
Date: Sun, 24 May 2009 04:42:36 +0000
Subject: [avrx] Re: AVRx on Arduino
--- In avrx@yahoogroups.
> avr-gcc.exe -I"E:\AVRX\iMP3\
> _Def.c
>
> In file included from ../Task/Task_
> ../Task/../avrx.
> ../Task/../avrx.
> In file included from ../Task/Task_
> ../Task/../avrx.
> ../Task/../avrx.
> ../Task/../avrx.
> ../Task/../avrx.
> ../Task/../avrx.
> ../Task/../avrx.
> ../Task/../avrx.
> ../Task/../avrx.
> ../Task/../avrx.
> make: *** [Task_Def.o] Error 1
Looks like you are including avrx.inc and avrx.h in Task_Def.c. Should you only include avrx.h?
Á¢¿ÌÏÂÔØ MSN ±£»¤¶Ü£¬±£ÕÏMessenger °²È«Îȶ¨£¡ ÏÖÔÚ¾ÍÏÂÔØ£¡