LinuxForum.Fans
Тема

Не могу собрать kgb

Автор: Aspedin 4 сообщений 2139 просмотров 🔒 закрыта
#25501

есть такой молодой архиватор kgb. Он свободный и открытый, но автор выложил для lin только исходник и 2 строчки инструкции Ссылка

при попытки сборки, вобщем ничего не собирается. Чую бевда в сырцах
[console]
[TARDIS:~/kgb]$ g++ -O3 -o kgb_arch kgb_arch_posix_by_slawek.cpp
kgb_arch_posix_by_slawek.cpp: In constructor ‘Ch::Ch()’:
kgb_arch_posix_by_slawek.cpp:998: error: ‘memset’ was not declared in this scope
kgb_arch_posix_by_slawek.cpp: In constructor ‘CharModel::CharModel()’:
kgb_arch_posix_by_slawek.cpp:1457: error: ‘memset’ was not declared in this scope
kgb_arch_posix_by_slawek.cpp: In constructor ‘MatchModel::MatchModel()’:
kgb_arch_posix_by_slawek.cpp:1528: error: ‘memset’ was not declared in this scope
kgb_arch_posix_by_slawek.cpp: In function ‘int main(int, char**)’:
kgb_arch_posix_by_slawek.cpp:2339: error: ‘strlen’ was not declared in this scope
kgb_arch_posix_by_slawek.cpp: In member function ‘void Hashtable<T>::set(U32) [with T = Counter]’:
kgb_arch_posix_by_slawek.cpp:1370: instantiated from here
kgb_arch_posix_by_slawek.cpp:1092: error: ‘memmove’ was not declared in this scope
kgb_arch_posix_by_slawek.cpp:1094: error: ‘memmove’ was not declared in this scope
kgb_arch_posix_by_slawek.cpp:1095: error: ‘memset’ was not declared in this scope
kgb_arch_posix_by_slawek.cpp:1102: error: ‘memmove’ was not declared in this scope
[/console]

#25503

Вставь в kgb_arch_posix_by_slawek.cpp строку

#include <string.h>

#25504

Hvzh, спс. все заработало

#25509
Aspedin написал:
Hvzh, спс. все заработало

Оформи это исправление как патч и вышли "обновление" автору :)

Войдите или зарегистрируйтесь, чтобы ответить.