- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm building a simple project including mraa.hpp in two source files, and getting a linker error for redefinition of the global functions declared (and implemented) in common.hpp, ex:
common.hpp:48: multiple definition of `mraa::getVersion()'
Looking at common.hpp, its a header file which implements several global functions in the mraa namespace. Is there a way to include this header file in multiple source files without redefining the method & causing linker errors? Is there a reason they are in the header and not the library? Should the compiler be inlining them?
Thanks
- Tags:
- Internet of Things
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
could you give some more insights:
- how do you compile / link
- where do you build? (within the Eclipse IDE or directly on the target?)
- which version of mraa do you use?

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page