-
Notifications
You must be signed in to change notification settings - Fork 11
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
Can't compile on ubuntu 18.04 #34
Comments
Also I get 3 errors when I run 'make run-test'
|
I got the same error when using Ubuntu 18.04. Any suggestions? Many thanks! |
Hi naren3491, did you figure out how to solve these errors? |
Hi @naren3491 and @kunyuan827. Sorry for the late reply, I was out of office for a few days. This issue must be related to issue #29. You can certainly ignore the failing tests - the issue is related with the tests themselves rather that the code of SuperSCS. I had started the branch |
Hi @alphaville , Thanks for your reply. "You can certainly ignore the failing tests - the issue is related with the tests themselves rather that the code of SuperSCS." Thanks for clarifying! That helps. Regards, |
Hi @alphaville , thanks for your reply. You're right. I ignored the test errors and the code works well until now. |
I had the same problem with Debian 10. I could compile it with simply removing |
Can you share a working script that shows how to convert timespec into timeval? I am not very familiar with C++. |
to fix build error: ``` gcc -g -Wall -std=c99 -Wwrite-strings -funroll-loops -Wstrict-prototypes -I. -Iinclude -fPIC -Ofast -DSVD_ACTIVATED=1 -DCTRLC=1 -DCOPYAMATRIX=1 -DLAPACK_LIB_FOUND -DUSE_LAPACK -c src/scs.c -o out/obj/scs.o In file included from include/scs.h:36, from src/scs.c:28: include/util.h:78:25: error: field 'tic' has incomplete type 78 | struct timespec tic; | ^~~ include/util.h:79:25: error: field 'toc' has incomplete type 79 | struct timespec toc; | ^~~ make: *** [Makefile:59: out/obj/scs.o] Error 1 ```
I tried make in ubuntu 18.04, I get error
It seems I am not able to use struct timespec, I converted it into timeval and it works. Is there a reason timespec doesn't work in ubuntu?
The text was updated successfully, but these errors were encountered: