Guest User

Untitled

a guest
Jul 15th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. ├── CMakeLists.txt
  2. ├── main.cpp
  3. ├── libusb
  4. │ ├── lubusb.h
  5. │ ├── libusb-1.0.def
  6. │ └── libusb-1.0.a
  7.  
  8. cmake_minimum_required(VERSION 2.8)
  9. project(untitled1)
  10.  
  11. set(CMAKE_CXX_STANDARD 11)
  12.  
  13. set(SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp)
  14. add_executable(untitled1 ${SOURCE_FILES})
  15. target_link_libraries(untitled1 ${CMAKE_CURRENT_SOURCE_DIR}/libusb/libusb-1.0.a)
  16.  
  17. CMakeFilesuntitled1.dir/objects.a(main.cpp.obj): In function `main':
  18. C:/.../untitled1/main.cpp:5: undefined reference to `libusb_init@4'
  19. collect2.exe: error: ld returned 1 exit status
  20. mingw32-make.exe[3]: *** [untitled1.exe] Error 1
  21. mingw32-make.exe[2]: *** [CMakeFiles/untitled1.dir/all] Error 2
  22. mingw32-make.exe[1]: *** [CMakeFiles/untitled1.dir/rule] Error 2
  23. mingw32-make.exe: *** [untitled1] Error 2
Add Comment
Please, Sign In to add comment