This should work:

gcc -Wall  -o hello hello.c `pkg-config fuse --cflags --libs`

The order of sources and libraries matters.
If you want to know more, you can read 
http://webpages.charter.net/ppluzhnikov/linker.html

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/878612

Title:
  Linker fails when compiling fuse files with "undefined reference to
  `fuse_main_real'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fuse/+bug/878612/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to