Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ├── CMakeLists.txt
- ├── main.cpp
- ├── libusb
- │ ├── lubusb.h
- │ ├── libusb-1.0.def
- │ └── libusb-1.0.a
- cmake_minimum_required(VERSION 2.8)
- project(untitled1)
- set(CMAKE_CXX_STANDARD 11)
- set(SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp)
- add_executable(untitled1 ${SOURCE_FILES})
- target_link_libraries(untitled1 ${CMAKE_CURRENT_SOURCE_DIR}/libusb/libusb-1.0.a)
- CMakeFilesuntitled1.dir/objects.a(main.cpp.obj): In function `main':
- C:/.../untitled1/main.cpp:5: undefined reference to `libusb_init@4'
- collect2.exe: error: ld returned 1 exit status
- mingw32-make.exe[3]: *** [untitled1.exe] Error 1
- mingw32-make.exe[2]: *** [CMakeFiles/untitled1.dir/all] Error 2
- mingw32-make.exe[1]: *** [CMakeFiles/untitled1.dir/rule] Error 2
- mingw32-make.exe: *** [untitled1] Error 2
Add Comment
Please, Sign In to add comment