У меня следующая структура проекта:

< br />
вот содержимое одного файла CMakeLists.txt из prj.lab/stacklst/ :
Код: Выделить всё
add_library(stackarr stackarr.cpp stackarr.hpp)
set_property(TARGET stackarr PROPERTY CXX_STANDARD 20)
target_include_directories(stackarr PUBLIC
$
$
)
The executable file sees stack.hpp (when I moved the implementation of methods to it, everything worked), but when the implementation is in stack.cpp, nothing works. What can be the problem and how to solve it?
Источник: https://stackoverflow.com/questions/781 ... lass-metho
Мобильная версия