Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. cmake_minimum_required (VERSION 2.6)
  2. project (MTSOS)
  3.  
  4. # Select flags.
  5. set(CMAKE_C_FLAGS "-std=c99")
  6.  
  7. # Blas library
  8. find_package( BLAS REQUIRED )
  9.  
  10. include_directories(${BLAS_INCLUDE_DIR})
  11.  
  12. add_executable (test_MTSOS test_MTSOS.c barrier_front.c dynamics_front.c
  13. MTSOS.c csparse.c)
  14.  
  15. # Linking CImg dependencies.
  16. target_link_libraries (test_MTSOS m blas ${BLAS_LIBRARIES})
  17.  
  18. -- The C compiler identification is GNU 4.8.2
  19. -- The CXX compiler identification is GNU 4.8.2
  20. -- Check for working C compiler: /usr/bin/cc
  21. -- Check for working C compiler: /usr/bin/cc -- works
  22. -- Detecting C compiler ABI info
  23. -- Detecting C compiler ABI info - done
  24. -- Check for working CXX compiler: /usr/bin/c++
  25. -- Check for working CXX compiler: /usr/bin/c++ -- works
  26. -- Detecting CXX compiler ABI info
  27. -- Detecting CXX compiler ABI info - done
  28. -- Looking for dgemm_
  29. -- Looking for dgemm_ - found
  30. -- Looking for include file pthread.h
  31. -- Looking for include file pthread.h - found
  32. -- Looking for pthread_create
  33. -- Looking for pthread_create - not found
  34. -- Looking for pthread_create in pthreads
  35. -- Looking for pthread_create in pthreads - not found
  36. -- Looking for pthread_create in pthread
  37. -- Looking for pthread_create in pthread - found
  38. -- Found Threads: TRUE
  39. -- A library with BLAS API found.
  40. -- Configuring done
  41. -- Generating done
  42. -- Build files have been written to: /home/jabuntu14/Desktop/MTSOS/build
  43.  
  44. Scanning dependencies of target test_MTSOS
  45. [ 20%] Building C object CMakeFiles/test_MTSOS.dir/test_MTSOS.c.o
  46. [ 40%] Building C object CMakeFiles/test_MTSOS.dir/barrier_front.c.o
  47. /home/jabuntu14/Desktop/MTSOS/barrier_front.c: In function ‘so_barrier’:
  48. /home/jabuntu14/Desktop/MTSOS/barrier_front.c:83:25: warning: implicit declaration of function ‘dsyr’ [-Wimplicit-function-declaration]
  49. dsyr(uplo, &u_size, &alpha, &Df[i*U_size], &one, A, &u_size);
  50. ^
  51. [ 60%] Building C object CMakeFiles/test_MTSOS.dir/dynamics_front.c.o
  52. [ 80%] Building C object CMakeFiles/test_MTSOS.dir/MTSOS.c.o
  53. /home/jabuntu14/Desktop/MTSOS/MTSOS.c: In function ‘so_MakeA’:
  54. /home/jabuntu14/Desktop/MTSOS/MTSOS.c:1561:13: warning: implicit declaration of function ‘dgemv’ [-Wimplicit-function-declaration]
  55. dgemv(chn, &m_m, &n_m, &one, &M_dynamics[i*State_size*State_size], &m_m, &S_prime[i*State_size], &p_m, &zero, datam, &p_m);
  56. ^
  57. [100%] Building C object CMakeFiles/test_MTSOS.dir/csparse.c.o
  58. Linking C executable test_MTSOS
  59. CMakeFiles/test_MTSOS.dir/barrier_front.c.o: In function `so_barrier':
  60. barrier_front.c:(.text+0x4a7): undefined reference to `dsyr'
  61. CMakeFiles/test_MTSOS.dir/MTSOS.c.o: In function `so_MakeA':
  62. MTSOS.c:(.text+0x5e41): undefined reference to `dgemv'
  63. MTSOS.c:(.text+0x5ee4): undefined reference to `dgemv'
  64. MTSOS.c:(.text+0x5f87): undefined reference to `dgemv'
  65. collect2: error: ld returned 1 exit status
  66. make[2]: *** [test_MTSOS] Error 1
  67. make[1]: *** [CMakeFiles/test_MTSOS.dir/all] Error 2
  68. make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement