Home > Back-end >  Error: c | | error: ld returned 1 exit status |
Error: c | | error: ld returned 1 exit status |

Time:09-19

#include
#include
Typedef int SElemType;
Typedef int the Status;
# define OK 1
# define the ERROR 0
# define OVERFLOW - 2
# define STACK_INT_SIZE 100
# define STACKINCREMENT 10
Typedef struct {
SElemType * top;
SElemType * base;
Int stacksize;
} SqStack;
The Status InitStack (SqStack S) {
S.b ase=(SElemType *) malloc (STACK_INT_SIZE * sizeof (SElemType));
if(! S.b ase) {
Return OVERFLOW;
}
S.b ase=S.t op;
S.s tacksize=0;
Return OK;
}

There are two mistakes one is not written another don't know where is the main function wrong | | error: ld returned 1 exit status |

CodePudding user response:

Put the main function and logic written then compile, function entry will not give, compile link should be a problem,
  • Related