Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required (VERSION 2.6)
- project (MTSOS)
- # Select flags.
- set(CMAKE_C_FLAGS "-std=c99")
- # Blas library
- find_package( BLAS REQUIRED )
- include_directories(${BLAS_INCLUDE_DIR})
- add_executable (test_MTSOS test_MTSOS.c barrier_front.c dynamics_front.c
- MTSOS.c csparse.c)
- # Linking CImg dependencies.
- target_link_libraries (test_MTSOS m blas ${BLAS_LIBRARIES})
- -- The C compiler identification is GNU 4.8.2
- -- The CXX compiler identification is GNU 4.8.2
- -- Check for working C compiler: /usr/bin/cc
- -- Check for working C compiler: /usr/bin/cc -- works
- -- Detecting C compiler ABI info
- -- Detecting C compiler ABI info - done
- -- Check for working CXX compiler: /usr/bin/c++
- -- Check for working CXX compiler: /usr/bin/c++ -- works
- -- Detecting CXX compiler ABI info
- -- Detecting CXX compiler ABI info - done
- -- Looking for dgemm_
- -- Looking for dgemm_ - found
- -- Looking for include file pthread.h
- -- Looking for include file pthread.h - found
- -- Looking for pthread_create
- -- Looking for pthread_create - not found
- -- Looking for pthread_create in pthreads
- -- Looking for pthread_create in pthreads - not found
- -- Looking for pthread_create in pthread
- -- Looking for pthread_create in pthread - found
- -- Found Threads: TRUE
- -- A library with BLAS API found.
- -- Configuring done
- -- Generating done
- -- Build files have been written to: /home/jabuntu14/Desktop/MTSOS/build
- Scanning dependencies of target test_MTSOS
- [ 20%] Building C object CMakeFiles/test_MTSOS.dir/test_MTSOS.c.o
- [ 40%] Building C object CMakeFiles/test_MTSOS.dir/barrier_front.c.o
- /home/jabuntu14/Desktop/MTSOS/barrier_front.c: In function ‘so_barrier’:
- /home/jabuntu14/Desktop/MTSOS/barrier_front.c:83:25: warning: implicit declaration of function ‘dsyr’ [-Wimplicit-function-declaration]
- dsyr(uplo, &u_size, &alpha, &Df[i*U_size], &one, A, &u_size);
- ^
- [ 60%] Building C object CMakeFiles/test_MTSOS.dir/dynamics_front.c.o
- [ 80%] Building C object CMakeFiles/test_MTSOS.dir/MTSOS.c.o
- /home/jabuntu14/Desktop/MTSOS/MTSOS.c: In function ‘so_MakeA’:
- /home/jabuntu14/Desktop/MTSOS/MTSOS.c:1561:13: warning: implicit declaration of function ‘dgemv’ [-Wimplicit-function-declaration]
- 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);
- ^
- [100%] Building C object CMakeFiles/test_MTSOS.dir/csparse.c.o
- Linking C executable test_MTSOS
- CMakeFiles/test_MTSOS.dir/barrier_front.c.o: In function `so_barrier':
- barrier_front.c:(.text+0x4a7): undefined reference to `dsyr'
- CMakeFiles/test_MTSOS.dir/MTSOS.c.o: In function `so_MakeA':
- MTSOS.c:(.text+0x5e41): undefined reference to `dgemv'
- MTSOS.c:(.text+0x5ee4): undefined reference to `dgemv'
- MTSOS.c:(.text+0x5f87): undefined reference to `dgemv'
- collect2: error: ld returned 1 exit status
- make[2]: *** [test_MTSOS] Error 1
- make[1]: *** [CMakeFiles/test_MTSOS.dir/all] Error 2
- make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement