45 / 25 / 16
Регистрация: 14.04.2011
Сообщений: 623
|
||||||
1 | ||||||
Test.cpp:19: error: ‘mysql’ was not declared in this scope19.03.2014, 16:55. Показов 1465. Ответов 1
Метки нет Все метки)
(
пытаюсь скомпилировать такой код:
0
|
|
19.03.2014, 16:55 | |
Ответы с готовыми решениями:
1
Ошибка cpp|7|error: 'itoa' was not declared in this scope Вот: source_file.cpp: In function 'int main()': source_file.cpp:10:12: error: 'strlen' was not declared in this scope C:\tsserver\Projects\cpp\codeblocks\MyComp\IDE\IDE\IDE.cpp|1 5|error: 'InitApplication' was not declared in this scope| Main.cpp: In function ‘int main()’: main.cpp:10:1: error: ‘then’ was not declared in this scope |
205 / 181 / 112
Регистрация: 15.03.2014
Сообщений: 391
|
||||||
19.03.2014, 17:44 | 2 | |||||
1) установить пакет libmysqlclient-dev
2) Файл с исходником называется mysql.c Внес минимум изменений в твой код.
Код
g++ -I/usr/include/mysql mysql.c -L/usr/mysql -lmysqlclient -o mysql Код
Argument 0 : ./mysql Access denied for user 'root'@'localhost' (using password: YES)
0
|
19.03.2014, 17:44 | |
Помогаю со студенческими работами здесь
2
[Error] 'm' was not declared in this scope [Error] 'k' was not declared in this scope [Error] 'If' was not declared in this scope Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |