Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Integrating linxbee #43

Open
faizurrehman opened this issue Mar 12, 2019 · 4 comments
Open

Integrating linxbee #43

faizurrehman opened this issue Mar 12, 2019 · 4 comments

Comments

@faizurrehman
Copy link

When I compile after including header and source files in my project, there is error:

error: redefinition of 'sruct timespec'

@attie
Copy link
Owner

attie commented Mar 13, 2019

What OS and toolchain are you using?
What file and line is referred to in the error message?

@attie
Copy link
Owner

attie commented Mar 13, 2019

Have you tried defining XBEE_NODEF_TIMESPEC?

#if !defined(WIN_PTHREADS) && !defined(XBEE_NODEF_TIMESPEC)

@faizurrehman
Copy link
Author

My OS is window 7, and compiling it using minGW.
Where do I need to redefine XBEE_NODEF_TIMESPEC?

@attie
Copy link
Owner

attie commented May 5, 2019

Anytime before you include xbee.h should work...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants