Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Definition of 'tm' must be imported from module 'Darwin.C.time' before it is required #271

Open
twoputt opened this issue Nov 20, 2018 · 3 comments

Comments

@twoputt
Copy link

twoputt commented Nov 20, 2018

Hi,

In LoggerClient.m I'm receiving an error in the routine LoggerLogToConsole:
Definition of 'tm' must be imported from module 'Darwin.C.time' before it is required
I found similar issues from a couple of years ago to #import <sys/time.h> would solve it, however, you already do that and the problem persists.

Any thoughts?

@fpillet
Copy link
Owner

fpillet commented Nov 27, 2018

Hi Red,

Sorry about this issue. It's weird as I'm not seeing this issue at all -- which Xcode / SDK / target OS are you compiling for ?

@twoputt
Copy link
Author

twoputt commented Nov 27, 2018

Thanks for your response. To answer your question, I'm using Xcode 10.1 and I tried targeting iOS 9.x, iOS 10.x, and iOS 12.x. All to no avail.

I did circumvent this issue by using Foundation / NSDate operations, as I only need this to work for MacOS and iOS. Frankly, I think this is an Xcode issue given sys/time.h is an Apple Darwin header. I could also be wrong ;-)

@fpillet
Copy link
Owner

fpillet commented Nov 27, 2018

Wicked! I'll definitely check this out soon. Compilation should never be an issue.

BTW hit me up on my private email (fpillet at gmail), I remember your name from when you were at Dataviz (I'm the author of Powerglot) :)

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

No branches or pull requests

2 participants