PDA

View Full Version : Structures


kwabena
12-20-07, 03:13 AM
The code below does not compile, kindly show me why the error is located

#include clib\common51.c
#include clib\syslib51.c
#include clib\stdio.h

struct coord {
int x;
int y;
} ;

struct coord first, second;


main() {


}

nmitech
12-20-07, 10:00 AM
As I recalled, Small-C 51 and Small-C 11 does not support STRUCT type functions. To know which libraries are supported, please take a look at the ..\CLIB folder. More info on the Library functions revision history are also described on the SC51 document.