Thank's David.

On Dec 14, 9:19 pm, "David A. Lyons" <[EMAIL PROTECTED]> wrote:
> Aha.  I get what you're talking about now.  Reading between the lines
> a bit, I see that you're compiling a C++ source file, and I bet your
> error is coming from this part:
>         static struct fuse_operations hello_filesystem_operations = {
>             .getattr = hello_getattr, /* To provide size, permissions, etc. */
>         ...
> As far as I can tell, this syntax is not supported for C++ (in gcc).
>
> I solved this (for an FS I have not finished yet) by just initializing
> the struct the "long way," including many 0 entries:
>
>         static struct fuse_operations prodos_filesystem_operations =
>         {
>             your_getattr,               /* getattr */
>             0,                                  /* readlink */
>                 ...
>
> You could also keep this struct in a plain C file, using the compact
> designated-initializer syntax to refer to your C++ functions.  You'd
> need to wrap the function declarations in:
>         extern "C"
>         {
>                 ...
>         }
> ...to avoid C++ name mangling, so that the linker can find them.
>
> Cheers,
>
> --Dave
>
> On Dec 14, 2007, at 6:03 PM, Blago wrote:
>
>
>
> > On Dec 8, 9:27 pm, Amit Singh <[EMAIL PROTECTED]> wrote:
> >>> Does anyone have any ideas?
>
> >> I don't have any ideas, but I do have several questions.
>
> >> Which mysqlfs.cpp? What's the context here? You want to know about a
> >> compile-time error message, but you didn't post a pointer to the code
> >> in question. Which wiki is this and which example FS is this?
> > The one and only:http://code.google.com/p/macfuse/wiki/HELLOWORLDFS
>
> >> What's "Fuse 2.6"? Sounds like the Linux version of FUSE. The latest
> >> MacFUSE version is 1.1. Are we talking about the same software even?
> > $ pkg-config --modversion fuse
> > 2.6.1
>
> > mount_fusefs reports 0.3.0
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"macfuse-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/macfuse-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to