tags:

views:

65

answers:

2

Help me please... I don't know to do. This error:

error: invalid conversion from ‘int (*)(const char*, fuse_file_info*)’ to ‘int (*)(const char*, int)’

when i do

static struct fuse_operations vkfs_opers;
...
vkfs_opers.open     = vkfs_open;

but function declarated as

static int vkfs_open(const char *path, struct fuse_file_info *fi)

and in structure fuse_operations it declarated as

int (*open) (const char *, struct fuse_file_info *);
A: 

What you've done seems correct, so I don't know why you are getting that error. My first guess would be that its a side effect of some other error. Is that the only error you get when you compile, or are there others?

swestrup
+1  A: 

Try #define FUSE_USE_VERSION 26 before including <fuse.h>.

Source of solution is this discussion.

coelhudo
thanks, i resolved the problem...
Antigluk