Код: Выделить всё
#include "modules/UserInputHandling.h"
using namespace std;
int main(int argc, char *argv[])
{
int input = user_input_handling(argc,argv);
}
Код: Выделить всё
C:\Users\User\AppData\Local\Programs\CLion\bin\mingw\bin/ld.exe: C:\Users\User\AppData\Local\Temp\ccr2uc3S.o:lsh.cpp:(.text+0x1e): undefined reference to `user_input_handling(int, char**)'
CMakeLists.txt:
Код: Выделить всё
cmake_minimum_required(VERSION 3.16)
project(lsh CXX)
set(CMAKE_CXX_STANDARD 14)
include_directories(${CMAKE_SOURCE_DIR}/modules)
add_executable(lsh lsh.cpp)
Подробнее здесь: https://stackoverflow.com/questions/798 ... y-function
Мобильная версия