[SOLVED] Why the expected =, ,, ;, asm or __attribute__ before typedef error?
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I did think of that. I looked (quickly), but I will look harder.
This is the identical .h used on the other machine (SCO)
with no errors which is why I wasn't too concerend about that
type of problem but I will check some more.
Thanks for the reply.
Here is a larger look for what it is worth. Didn't want to print the whole thing.
/* Development only error codes */
#define BADWNSTRUC 17 /*Corrupted WINDOW structure */
#define BADMFSTRUC 18 /*Corrupted MFILE structure */
#define BADSCRSTRUC 19 /*Corrupted SCR structure */
#define BADCLSTRUC 20 /*Corrupted CLIST structure */
#define BADFMSTRUC 21 /*Corrupted FORM structure */
#define BADMNSTRUC 22 /*Corrupted MENU structure */
#define BADITEMSTRUC 23 /*Corrupted item structure */
#define BADBGSTRUC 24 /*Corrupted background structure */
#define WNBORDERLESS 25 /*Invalid op. on borderless window */
#define WNISUP 26 /*Window is already up */
#define WNNOTUP 27 /*Window is not up */
#define WNNOTDIRECT 28 /*Window is not direct display */
#define WNNOTPOPUP 29 /*Window is not a pop-up */
#define WNTOOBIG 30 /*Window too big for the buffer */
#define MFROWNEG 31 /*Memory file row is negative */
#define MFROWTOOBIG 32 /*Memory file row number is too large */
#define STRTOOLONG 33 /*String too long */
#define FULLTABLE 34 /*Function table full */
#define NOMFILEPTR 35 /*No MFILE pointer installed in window*/
#define NOKTP 36 /*Keytable pointer cannot be a NULLP */
#define NOWNIMAGE 37 /*No window image saved */
#define NOSUCHFLD 38 /*Field does not exist */
#define NOSUCHITEM 39 /*No item with this number on form */
#define BADPTR 40 /*NULLP is not allowed */
#define BADPARM 41 /*Bad parameter value */
#define BADWNCOORD 42 /*Bad window coordinates */
#define BADLINECOORD 43 /*Bad line coordinates */
#define BADBOXCOORD 44 /*Bad box coordinates */
#define BADTEXTCOORD 45 /*Bad text coordinates */
#define BADFLDCOORD 46 /*Bad field coordinates */
#define BADPRPTCOORD 47 /*Bad prompt coordinates */
#define BADSRCOORD 48 /*Bad scrollable region coordinates */
#define BADMEMOCOORD 49 /*Bad memo coordinates */
#define BADMENUCOORD 50 /*Bad menu coordinates */
#define BADDATE 51 /*Invalid date string */
#define BADTIME 52 /*Invalid time string */
#define BADFORMAT 53 /*Invalid date/time format string */
#define BADCLITEM 54 /*No item with this number in list */
#define BADFMTYPE 55 /*Wrong type of form to add field to */
#define BADPIC 56 /*Bad picture */
#define BADROW 57 /*Bad row number */
#define BADCOL 58 /*Bad data column number */
#define FMISUP 59 /*Form is on screen */
#define FMNOTUP 60 /*Form is not on screen */
#define FMISREADY 61 /*Cannot add fields to ready forms */
#define FMEMPTY 62 /*No active items on the form */
#define NOTDFIELD 63 /*Data field expected */
#define NOTMEMOFLD 64 /*Memo field expected */
#define NOPICSYMFUNC 65 /*No picture symbol function */
#define BADFLDTYPE 66 /*Illegal operation for this fld type */
#define NOSCROLLBAR 67 /*This window has no scroll bars */
#define NORGSETFUNC 68 /*No range set function */
#define FLDDISABLED 69 /*Field type has not been enabled */
#define SROWNOTVIS 70 /*Scrollable row not visible */
#define DL_ACCERR 71 /*Invalid access code */
#define DL_LOCKERR 72 /*Lock_status parameter was not LOCK */
#define DR_KEYERR 73 /*Directory record key was a null */
#define FL_EOFILE 74 /*End of file has been reached */
#define FL_PRVLOCKED 75 /*File locked by a previous user */
#define FL_NFOUND 76 /*File not found */
#define DL_RCNTYPE 77 /*Record was not the requested type */
#define DR_PRVLOCKED 78 /*Dir record locked by previous user */
#define DR_CURLOCKED 79 /*Dir record locked by current user */
#define DR_NFOUND 80 /*Dir record not found */
#define DR_NLOCKED 81 /*Dir record not locked */
#define DL_EORECS 82 /*End of directory records has been */
#define DL_DATAERR 83 /*Data len greater than max allowed */
#define FL_BADPATH 84 /*Specified drive/path nonexistent */
#define FL_NPERM 85 /*User doesn't have req. permissions */
#define NOSUCHSR 86 /*Scrollable region does not exist */
#define NOSUCHFUNC 87 /*Function name not in function list */
#define FUNCNOTRES 88 /*Functions have not been resolved */
#define DATANOTRES 89 /*Data pointers have not been resolved*/
#define CLISTNOTRES 90 /*Choice lists have not been resolved */
#define FMISVVD 91 /*Cannot make VVD form READY */
#define LIBNOTFOUND 92 /*Library name not found */
#define FMNOTRES 93 /*Form not resolved */
#define FMNOTFOUND 94 /*Form not found in list */
#define DL_RECFORMAT 95 /*Bad VMS record format */
/* System informational message definitions */
/* Quantity of VCS informational messages */
#define VCSINFOQ 24
/*reserve 0 for no message */
#define INITMEMLACK 1 /*Insufficient memory to initialize */
#define ERR_OVVTC 2 /*Error opening VVTERMCAP file */
#define TERMNOTFOUND 3 /*No terminal description found */
#define TERMTOOLONG 4 /*Terminal description too long */
#define NOTERM 5 /*Unable to determine terminal type */
#define NODUMBTERM 6 /*VV cannot use a dumb terminal */
#define BADTERMDEF 7 /*Bad terminal description */
#define NOCHANNEL 8 /*Unable to open IO channel */
#define ERR_QIO 9 /*QIO system service error */
#define HELPSTR 10 /*Default help string */
#define TOFMSG 11 /*Top of memory file message */
#define BOFMSG 12 /*Bottom of memory file message */
#define AM_STRING 13 /*AM string */
#define PM_STRING 14 /*PM string */
#define EXHELPMSG 15 /*Press <Return> or <ESC> to exit help*/
#define SCRLHELPMSG 16 /*Use cursor pad keys to scroll */
#define EXITFORMMSG 17 /*Do you want to exit this form */
#define QUITFORMMSG 18 /*Do you want to quit this form */
#define EXCLISTMSG 19 /*Cursor keys to ... exit choice menu */
#define DATA_HELP 20 /*Data form default help string */
#define SCROLL_HELP 21 /*Scrollable subform help string */
#define MENU_HELP 22 /*Menu form help string */
#define NOVIRVB 23 /*No virtual video buffer */
All the comments and #define's are filtered out before things like that typedef are parsed. So whatever the parser sees as incorrect and right before the typedef is apparently much further back. It could even be in some other .h file, depending on what is included where.
Maybe you want to try compiling with the -E option to get the intermediate result (after the preprocessor has dealt with the #define and similar, but before actually compiling). Then search for that typedef struct node_struct and see what is before it.