Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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


this error show to me when I use VideoStreemSDK in a .c file on this SDK in my project for play Online video in app, however in demo worked but when I run my project on device see this error ! so I changed library :

#include <sys/time.h>

to

#include "sys/time.h"
#include "time.h"
#include "sys/time.h"

and still not working! and I don't know any more :-(

pic1

pic2

**

Problem Solved

**

I realized that SDK have a time.h which the same name file in reference has exist. this tow file when I run App has conflicting. So I change the time.h file to f_time.h and now I can Run app without error.

like image 364
Mohammad Avatar asked Nov 19 '22 09:11

Mohammad


1 Answers

I realized that SDK have a time.h which the same name file in reference has exist. this tow file when I run App has conflicting. So I change the time.h file to f_time.h and now I can Run app without error. – Mohammad

like image 155
Armali Avatar answered Dec 25 '22 04:12

Armali