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

make error #139

Open
mici1708 opened this issue Aug 20, 2024 · 3 comments
Open

make error #139

mici1708 opened this issue Aug 20, 2024 · 3 comments

Comments

@mici1708
Copy link

Hi i use ubuntu 24.04 LTS on vmware workstation.
When run command make on srt-live-server directory give me this error:

g++ -c -g -w -fcompare-debug-second  slscore/common.cpp -o obj/common.o
slscore/common.cpp: In function ‘void sls_gettime_fmt(char*, int64_t, char*)’:
slscore/common.cpp:111:5: error: ‘time’ was not declared in this scope
  111 |     time (&rawtime);
      |     ^~~~
slscore/common.cpp:113:16: error: ‘localtime’ was not declared in this scope
  113 |     timeinfo = localtime (&rawtime);
      |                ^~~~~~~~~
slscore/common.cpp:114:5: error: ‘strftime’ was not declared in this scope
  114 |     strftime(timef, sizeof(timef), fmt, timeinfo);
      |     ^~~~~~~~
make: *** [Makefile:61: obj/common.o] Errore 1
@yuchen111
Copy link

Add #include to the file where the error occurs

@ubiqbroadcasting
Copy link

I am facing the same issue, any resolution please

@WhiteWind4
Copy link

add #include <time.h> to slscore/common.cpp

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

4 participants