Hallo zusammen,
das folgende kurze Programm wird nicht richtig kompiliert.
Die Fehlermeldung lautet:
2008\projects\capitest_proma\capitest\capi\connect1.c(11) : error C2143: Syntaxfehler: Es fehlt ';' vor 'Typ'
Verändere ich das Programm zu
so wird es einwandfrei kompiliert. Warum?
Danke für eure Zeit,
Gruß rechnan
das folgende kurze Programm wird nicht richtig kompiliert.
C:
#include <my_global.h>
#include <my_sys.h>
#include <mysql.h>
#pragma comment(lib,"libmysql.lib")
int main (int argc, char *argv[])
{
MYSQL *conn;
conn = mysql_init (NULL);
int x;
}
Die Fehlermeldung lautet:
2008\projects\capitest_proma\capitest\capi\connect1.c(11) : error C2143: Syntaxfehler: Es fehlt ';' vor 'Typ'
Verändere ich das Programm zu
C:
#include <my_global.h>
#include <my_sys.h>
#include <mysql.h>
#pragma comment(lib,"libmysql.lib")
int main (int argc, char *argv[])
{
int x;
MYSQL *conn;
conn = mysql_init (NULL);
}
so wird es einwandfrei kompiliert. Warum?
Danke für eure Zeit,
Gruß rechnan
Zuletzt bearbeitet: