Recent content by JOZ

  1. J

    Fixing VHDL Errors for Traffic Light System

    Hi I've got a problem with VHDL code its coming up with a lot of errors saing that there's undefined symbols, so I am pretty sure that the error is to do with defining things/instantiation, below is all the code for both the files that are being used...
  2. J

    Conversion from 'Shape*' to non-scalar type 'Shape' requested

    So i have another problem now... i need to go through my list and find every time one bit of the data struct equals a value do something.. what i want to do it else if(key==('B')) { clearviewport(); do{ shape=lst_next(list)...
  3. J

    Conversion from 'Shape*' to non-scalar type 'Shape' requested

    Yeah i did i forgot about that and i did have issues with memory allocation and you just solved my problem i was about to post, and yeah i do need to use it as a pointer it gets passed arround to heeps of fuctions Thanks
  4. J

    Conversion from 'Shape*' to non-scalar type 'Shape' requested

    So I've gotten rid of the error i thaught i had tried this before without it working... but it works now void shp_draw(Shape *shape) { if(shape->tShape==(2)) drawBox(shape); else if (shape->tShape==(1)) drawEllipse(shape); else drawCircle(shape); }
  5. J

    Conversion from 'Shape*' to non-scalar type 'Shape' requested

    The draw functions are static void drawCircle(Shape shape) { if(shape.filled==(1)) { setfillstyle(SOLID_FILL, shape.color); fillellipse(shape.centerX, shape.centerY, shape.sizeX,shape.sizeX); } else { setcolor(shape.color)...
  6. J

    Conversion from 'Shape*' to non-scalar type 'Shape' requested

    I get this error and I don't know how to get rid of it... I declared the Shape struct typedef struct { int tShape; int centerX; int centerY; int sizeX; int sizeY; int color; int filled; } Shape; When I try to send a Shape struct called shape to a...