Quantcast
Channel: Active questions tagged header - Stack Overflow
Viewing all articles
Browse latest Browse all 653

‘struct' declared inside parameter list [closed]

$
0
0

Here's my header file that was included in another file but not yet used:

#define ksm_read 0X01#define ksm_rdwr 0x00struct ksm_info_t {    uint ksmsz; //size of shared mem    int cpid;   //pid of the creator    int mpid;   //pid of the last modifier    uint attached_nr; //number of attached processes    uint atime; //last attached time    uint dtime; //last deattach time    uint total_shrg_nr; //total number of existing shared regions    uint total_shpg_nr; //total number of existing shared pages};int ksmget(char* name, uint size);int ksmattach(int hd, int flag);int ksmdetach(int hd);int ksminfo(int hd, struct ksminfo_t* info);int ksmdelete(int hd);

Here are the errors I'm getting:

> ksm.h:18: error: ‘struct ksminfo_t’ declared inside parameter list> ksm.h:18: error: its scope is only this definition or declaration, which is prob

Viewing all articles
Browse latest Browse all 653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>