Expression must have pointer-to-class-type?

I have a struct "MachineState" and i created a list of type "MachineState*". When i Try to iterate through the list ...

Incompatible implicit declaration of built-in function ‘malloc’?

I'm getting this error: warning: incompatible implicit declaration of built-in function ‘malloc’ I am tryi...