myGully.com Boerse.SH - BOERSE.AM - BOERSE.IO - BOERSE.IM Boerse.BZ .TO Nachfolger
Zurück   myGully.com > Computer & Technik > Programmierung
Seite neu laden

[C] ODBC, sqlext.h Kompilierfehler

Willkommen

myGully

Links

Forum

 
 
 
Themen-Optionen Ansicht
Prev Vorheriger Beitrag   Nächster Beitrag Next
Ungelesen 21.07.11, 15:39   #1
RnBandCrunk
Anfänger
 
Registriert seit: Feb 2010
Beiträge: 2
Bedankt: 0
RnBandCrunk ist noch neu hier! | 0 Respekt Punkte
Standard [C] ODBC, sqlext.h Kompilierfehler

Hallo miteinander

Wiedermal ärgern mich einige Fehler.

Ich will mit C auf Access zugreifen.
Ich benutze Dev-C++ 4.9.9.2.

Jedesmal wenn ich den untenstehenden Code ausführe, kommt eine Reihe von Fehlern:

Der Compilerlog mit den Fehlern:

Compiler: Default compiler
Building Makefile: "D:\Progs\DevCpp\Makefile.win"
Executing make...
make.exe -f "D:\Progs\DevCpp\Makefile.win" all
gcc.exe -D__DEBUG__ -c main.c -o main.o -I"D:/Progs/DevCpp/include" -ansi -g3

In file included from D:/Progs/DevCpp/include/sqlext.h:7,
from main.c:4:
D:/Progs/DevCpp/include/sql.h:346: error: syntax error before "SQLLEN"
D:/Progs/DevCpp/include/sql.h:349: error: syntax error before "SQLULEN"
D:/Progs/DevCpp/include/sql.h:361: error: syntax error before "SQLLEN"
D:/Progs/DevCpp/include/sql.h:364: error: syntax error before "SQLULEN"
D:/Progs/DevCpp/include/sql.h:367: error: syntax error before "SQLLEN"

D:/Progs/DevCpp/include/sql.h:373: error: syntax error before "SQLLEN"
D:/Progs/DevCpp/include/sql.h:374: error: syntax error before "SQLULEN"
D:/Progs/DevCpp/include/sql.h:375: error: syntax error before "SQLROWCOUNT"
D:/Progs/DevCpp/include/sql.h:382: error: syntax error before "SQLULEN"
D:/Progs/DevCpp/include/sql.h:387: error: syntax error before "SQLROWOFFSET"
D:/Progs/DevCpp/include/sql.h:392: error: syntax error before "SQLLEN"

D:/Progs/DevCpp/include/sql.h:399: error: syntax error before "SQLLEN"
In file included from main.c:4:
D:/Progs/DevCpp/include/sqlext.h:1187: error: syntax error before "SQLLEN"
D:/Progs/DevCpp/include/sqlext.h:1188: error: syntax error before "SQLULEN"
D:/Progs/DevCpp/include/sqlext.h:1201: error: syntax error before "SQLULEN"
D:/Progs/DevCpp/include/sqlext.h:1202: error: syntax error before "SQLLEN"

In file included from D:/Progs/DevCpp/include/sqlext.h:1214,
from main.c:4:
D:/Progs/DevCpp/include/sqlucode.h:26: error: syntax error before "SQLLEN"
D:/Progs/DevCpp/include/sqlucode.h:27: error: syntax error before "SQLLEN"
D:/Progs/DevCpp/include/sqlucode.h:36: error: syntax error before "SQLULEN"
D:/Progs/DevCpp/include/sqlucode.h:37: error: syntax error before "SQLULEN"
D:/Progs/DevCpp/include/sqlucode.h:70: error: syntax error before "SQLULEN"
D:/Progs/DevCpp/include/sqlucode.h:71: error: syntax error before "SQLULEN"
D:/Progs/DevCpp/include/sqlucode.h:87: error: syntax error before "SQLLEN"
D:/Progs/DevCpp/include/sqlucode.h:88: error: syntax error before "SQLLEN"

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

Execution terminated


ENDE DES LOGS

Ich verstehe nicht was er mit Syntaxerror sagen will, die Funktionsdeklarationen im Headerfile sind alle richtig, ich habe bei Microsoft nachgeschaut.

Die Stellen alle nach der Reihe aufgelistet.
PHP-Code:
SQLRETURN SQLBindCol(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT,SQLPOINTER,SQLLEN,SQLLEN*);
SQLRETURN SQL_API SQLDescribeCol(SQLHSTMT,SQLUSMALLINT,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLSMALLINT*,SQLULEN*,SQLSMALLINT*,SQLSMALLINT*);

SQLRETURN SQL_API SQLRowCount(SQLHSTMT,SQLLEN*);

SQLRETURN SQL_API SQLSetParam(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT,SQLSMALLINT,SQLULEN,SQLSMALLINT,SQLPOINTER,SQLLEN*); /* deprecated */

SQLRETURN SQL_API SQLGetData(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT,SQLPOINTER,SQLLEN,SQLLEN*);

SQLRETURN SQL_API SQLPutData(SQLHSTMT,SQLPOINTER,SQLLEN);

SQLRETURN SQL_API SQLSetConnectOption(SQLHDBC,SQLUSMALLINT,SQLULEN); /* deprecated */

SQLRETURN SQL_API SQLSetStmtOption(SQLHSTMT,SQLUSMALLINT,SQLROWCOUNT); /* deprecated */

SQLRETURN SQL_API SQLBindParam(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT,SQLSMALLINT,SQLULEN,SQLSMALLINT,SQLPOINTER,SQLLEN*);

SQLRETURN SQL_API SQLFetchScroll(SQLHSTMT,SQLSMALLINT,SQLROWOFFSET);

SQLRETURN SQL_API SQLGetDescRec(SQLHDESC,SQLSMALLINT,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*,
    
SQLSMALLINT*,SQLSMALLINT*,SQLLEN*,SQLSMALLINT*,SQLSMALLINT*,SQLSMALLINT*);

SQLRETURN SQL_API SQLSetDescRec(SQLHDESC,SQLSMALLINT,SQLSMALLINT,SQLSMALLINT,SQLLEN,SQLSMALLINT,
    
SQLSMALLINT,SQLPOINTER,SQLLEN*,SQLLEN*); 
Mein Code, ich inkludiere nur die Bibliotheken und schon hat er Fehler.
Ich habe sogar ODBC32.lib eingebunden, trotzdem geht es nicht.
Bevor ich Windows.h einband, hatte ich noch mehr Fehler.

Und wenn ich ein Window-Application-Projekt mache (man hat ja die Wahl zwischen Konsolenapplikation und Windowapplication), also wenn ein Fenster schon vorprogrammiert ist (mit HWND usw.) geht es auch nicht.

PHP-Code:
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <sqlext.h>

int main(int argcchar *argv[])
{
  
  
system("PAUSE");    
  return 
0;



Ich danke euch schon mal im Voraus
Für Fragen für Fragen bitte fragen.
RnBandCrunk ist offline   Mit Zitat antworten
 


Forumregeln
Du kannst keine neue Themen eröffnen
Du kannst keine Antworten verfassen
Du kannst keine Anhänge posten
Du kannst nicht deine Beiträge editieren

BB code is An
Smileys sind An.
[IMG] Code ist An.
HTML-Code ist Aus.

Gehe zu


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:27 Uhr.


Sitemap

().