Je travaille sur un gros projet en C++ qui marche sous linux et windows.
Suite à un crash de notre serveur ovh, nous avons du réinstaller notre logiciel sur le serveur (sous linux debian). lors de la compilation avec g++, j'ai malheureusement plusieurs erreurs:
SimDatabase.cpp:102: error: `MYSQL_OPTION_MULTI_STATEMENTS_ON' undeclared
(first use this function)
SimDatabase.cpp:102: error: (Each undeclared identifier is reported only once
for each function it appears in.)
SimDatabase.cpp:102: error: `mysql_set_server_option' undeclared (first use
this function)
SimDatabase.cpp:104: error: `MYSQL_OPTION_MULTI_STATEMENTS_OFF' undeclared
(first use this function)
SimDatabase.cpp: In member function `void CSimDatabase::eraseResult()':
SimDatabase.cpp:227: error: `mysql_next_result' undeclared (first use this
function)
Pour avoir accès à mysql, j'ai installer la librairie libmysqlclient14.
En cherchant sur google, j'ai lu qu'il fallait que ma version de mysql soit supérieur à 4.1 (il me semble). ma version est 5.0.32.
Je ne comprends donc vraiment pas d'où vient le pb sachant qu'il ne bloque pas sur les autres instructions de mysql...
Si vous avez des idées qui pourrait m'aider, n'hésitez pas
You might want to put that in English so that people who actually know something about the libraries you are using can give a better suggestion than I can.
There is a difference in the libraries. The linux libraries apparently declared variables/types/constants named MYSQL_OPTION_MULTI_STATEMENTS_ON/OFF but they are now either missing them or have them declared in a header you are not using. That error is causing the variable declarations for mysql_set_server_option and mysql_next_result to be ignored when compiling, so future references to those variables are invalid.
It is possible that the crash caused one of your default library paths to be lost, so you'll have to find it again and explicitly add it to your project.
It is also possible that the library headers were corrupted, or that after the crash updated libraries were restored that are different than the originals.
That's the best I know. Sorry I couldn't be of more help.