Page 1 of 1

Help with codevision compiler

Posted: Mon Oct 06, 2008 4:17 pm
by Wonce3000
I'm a new user of codevision and i'm working on my first code. when i compile i get this error:
Error: C:\cvavreval\bin\blink2\blink.c(37): missing '('
this where the error is located PORTA=0x00;

this is my code
#include <90s8515.h>
#include <stdio.h>
#include <delay.h>

int main(void)
{
DDRB=0xff;
while (1)
{
for (int i=1;i<=128;i=i*2)
{
PORTB = i;
delay_us(30000);
}
for (int i=128;i>1;i-=i/2)
{
PORTB = i;
delay_us(30000);
}
}
return 1;
}

you are on the wrong page...

Posted: Thu Oct 09, 2008 9:37 pm
by SwK
codevision runs a group in yahoogroups, so post this question over there.

any way i have been using this CVAVR for quitesome time, and when i went through your code, i did not found any problem. kindly make sure the PORT you are trying to use is available for the selected controller.

if still a problem then try to enclose your 'C' file so that i can give a shot in my machine.

~SwK

Thanks for your reply

Posted: Fri Oct 10, 2008 5:12 am
by Wonce3000
I think the nature of my problem was that fact that the virsion of codevision i'm using is not really vista compatable. Ran my code on a xp pc and got no errors.

Wonce