Skip to content

undefined reference to `clReleaseDevice' #12

@dendisuhubdy

Description

@dendisuhubdy
suhubdyd@venise:~/Documents/code/clRNG/src$ cmake CMakeLists.txt 
-- UNICODE feature disabled on linux                                                                                                                                                                                                                                           
-- 64bit build - FIND_LIBRARY_USE_LIB64_PATHS TRUE                                                                                                                                                                                                                             
-- Could NOT find GTest (missing:  GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)                                                                                                                                                                                         
-- Detected GNU fortran compiler.                                                                                                                                                                                                                                              
-- CMAKE_CXX_COMPILER flags: -m64 -pthread                                                                                                                                                                                                                                     
-- CMAKE_CXX_COMPILER debug flags: -g
-- CMAKE_CXX_COMPILER release flags: -O3 -DNDEBUG
-- CMAKE_CXX_COMPILER relwithdebinfo flags: -O2 -g -DNDEBUG
-- CMAKE_EXE_LINKER link flags:  
-- Configuring done
-- Generating done
-- Build files have been written to: /u/suhubdyd/Documents/code/clRNG/src
suhubdyd@venise:~/Documents/code/clRNG/src$ make
[ 16%] Built target clRNG
Linking C executable ../staging/HostOnly
CMakeFiles/HostOnly.dir/common.c.o: In function `call_with_opencl':
common.c:(.text+0x809): undefined reference to `clReleaseDevice'
collect2: error: ld returned 1 exit status
client/CMakeFiles/HostOnly.dir/build.make:112: recipe for target 'staging/HostOnly-1.0.0' failed
make[2]: *** [staging/HostOnly-1.0.0] Error 1
CMakeFiles/Makefile2:133: recipe for target 'client/CMakeFiles/HostOnly.dir/all' failed
make[1]: *** [client/CMakeFiles/HostOnly.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions