Команда g++ -o main main.cpp выдает следующий результат:
Код: Выделить всё
/usr/bin/ld: Undefined symbols:
Lexer::ConsoleWriteTokens()
collect2: ld returned 1 exit status
Код: Выделить всё
#include
#include"lexer.h"
int main(){
Lexer lexhnd = Lexer();
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/5912104/c-compiling-problem-class-methods[/url]
Мобильная версия