naranai naruyounisika wrote:
http://ubuntuforums.org/showthread.php?t=946857--------------------------------------------------------------------- #include <iostream> #include <linux/inotify.h> int main () { std::cout << "Hello\n"; return 0; } --------------------------------------------------------------------- This code cannot compile... # g++ -Wall test.cpp -o test In file included from /usr/include/asm/fcntl.h:1, from /usr/include/linux/fcntl.h:4, from /usr/include/linux/inotify.h:11, from test.cpp:2: /usr/include/asm-generic/fcntl.h:143: error: ‘loff_t’ does not name a type /usr/include/asm-generic/fcntl.h:144: error: ‘loff_t’ does not name a type moblin's libc-dev is broken? Thanks.
Doesn't compile on a non-moblin box either. Add: #include <sys/types.h> -- Stew Benedict Linux Foundation _______________________________________________ Moblin dev Mailing List [email protected] To manage or unsubscribe from this mailing list visit: https://lists.moblin.org/mailman/listinfo/dev or your user account on http://moblin.org once logged in. For more information on the Moblin Developer Mailing lists visit: http://moblin.org/community/mailing-lists
