Probleme mit libmysql



  • Hallo,

    ich nutze als Compiler Bloodshed Dev-C++ 4.9.9.2 unter Windows 7.
    Außerdem habe ich libmysql-6.0.2.DevPak heruntergeladen und installiert.

    Mein Programm welches folgendermaßen aussieht

    #include <stdio.h>
    #include <stdlib.h>
    
    #include <my_global.h>
    #include <mysql.h>
    
    int main(int argc, char *argv[])
    {
    
      printf("MySQL client version: %s\n", mysql_get_client_info());
    
      system("PAUSE");	
      return 0;
    }
    

    bringt diese Fehlermeldung

    In file included from C:/Dev-Cpp/include/my_global.h:74,
    from main.c:10:
    C:/Dev-Cpp/include/config-win.h:111:1: warning: "S_IRWXU" redefined
    In file included from C:/Dev-Cpp/include/config-win.h:33,
    from C:/Dev-Cpp/include/my_global.h:74,
    from main.c:10:
    C:/Dev-Cpp/include/sys/stat.h:65:1: warning: this is the location of the previous definition
    In file included from C:/Dev-Cpp/include/my_global.h:74,

    from main.c:10:
    C:/Dev-Cpp/include/config-win.h:114: error: conflicting types for 'mode_t'
    C:/Dev-Cpp/include/sys/types.h:85: error: previous declaration of 'mode_t' was here
    C:/Dev-Cpp/include/config-win.h:151: error: redefinition of typedef 'sigset_t'
    C:/Dev-Cpp/include/sys/types.h:95: error: previous declaration of 'sigset_t' was here
    C:/Dev-Cpp/include/config-win.h:159: error: redefinition of typedef 'off_t'
    C:/Dev-Cpp/include/sys/types.h:41: error: previous declaration of 'off_t' was here
    C:/Dev-Cpp/include/config-win.h:177: error: redefinition of typedef 'ssize_t'
    C:/Dev-Cpp/include/sys/types.h:104: error: previous declaration of 'ssize_t' was here

    In file included from C:/Dev-Cpp/include/my_global.h:74,
    from main.c:10:
    C:/Dev-Cpp/include/config-win.h:235:1: warning: "finite" redefined

    C:/Dev-Cpp/include/config-win.h:193:1: warning: this is the location of the previous definition
    In file included from main.c:10:
    C:/Dev-Cpp/include/my_global.h:580:1: warning: "my_reinterpret_cast" redefined
    In file included from C:/Dev-Cpp/include/my_global.h:74,
    from main.c:10:
    C:/Dev-Cpp/include/config-win.h:339:1: warning: this is the location of the previous definition

    In file included from C:/Dev-Cpp/include/my_global.h:627,
    from main.c:10:
    C:/Dev-Cpp/include/my_dbug.h:98:20: crtdbg.h: No such file or directory
    In file included from main.c:10:
    C:/Dev-Cpp/include/my_global.h:1583: warning: static declaration of 'rint' follows non-static declaration

    make.exe: *** [main.o] Error 1

    Ausführung beendet

    Kann mir jemand weiter helfen?

    Viele Grüße
    Meike

    P.S.: Ja ich weiß wie google funktioniert.



  • Hallo,

    eigene Header-Dateien werden mit Hochkommata eingebunden.

    #include "my_global.h"

    evtl. mit Pfadangabe. Vielleicht liegt es daran.



  • Hallo gigg,

    danke für deine Antwort. Leider war das nicht die Lösung des Problems.

    Viele Grüße
    Meike



  • Dieser Thread wurde von Moderator/in rüdiger aus dem Forum C (C89 und C99) in das Forum Compiler- und IDE-Forum verschoben.

    Im Zweifelsfall bitte auch folgende Hinweise beachten:
    C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?

    Dieses Posting wurde automatisch erzeugt.


Anmelden zum Antworten