SQLAPI++ bei Visual Studio installieren



  • Hey hab nen Problem, ich hab mir SQLAPI++ runtergeladen. Die Dateien sind jetzt bei mir aufm Desktop. Ich weiß aber nicht was ich beim visual c++ 2008 einstellen muss, damit dass funktioniert, mit dem includen der Dateien.

    mfg



  • Schon mal gegoogelt?
    (2 sec; 1 eintrag..)
    http://www.sqlapi.com/OnLineDoc/



  • jo die doku is mir bekannt allerdings hat mir die nicht wirklich weitergeholfen, da ich nicht wusste, wie man das beim visual studio einstellt und was mann wo hinkopieren muss..



  • Ich kenn die Lib jetzt nicht, aber ich würde das normal einstellen, wie man auch DirectX usw. installiert.. Also "zusätzliche Abhängigkeiten", libs bekannt machen usw.

    Oder happerts schon da?



  • Ja da happerts schon, wie gesagt hab bis jetzt noch nie eine externe Bibliothek gebraucht deswegen kenn ich mich, da nicht aus. Hoffe ihr könnt mir helfen.

    Wahrscheinlich muss man irgendwie die .lib und die headerdateien mitteilen oder?



  • Ja, genau.
    Ich finde jetzt nichts zu dem, aber kannst mal hier:
    http://www.drakon.ch/Tutorial/Tutorial.html

    Schritt 3 und "Sonst noch was" anschauen. Sollte in etwa so auch hier funktionieren.



  • Hmm hab jetzt bei Visual studio bei Bibliotheksdateien den Ordner lib angegeben, bei Ausführbare Dateien den Ordner bin und bei Includedateien den Ordner include angegeben.

    Nur bekomm ich immer diese Fehlermeldungen...

    1>Verknüpfen...
    1>db_test.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: virtual __thiscall SAConnection::~SAConnection(void)" (??1SAConnection@@UAE@XZ)" in Funktion "__catch$_main$0".
    1>db_test.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall SAString::operator char const *(void)const " (??BSAString@@QBEPBDXZ)" in Funktion "__catch$_main$0".
    1>db_test.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: class SAString __thiscall SAException::ErrText(void)const " (?ErrText@SAException@@QBE?AVSAString@@XZ)" in Funktion "__catch$_main$0".
    1>db_test.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall SAConnection::Rollback(void)" (?Rollback@SAConnection@@QAEXXZ)" in Funktion "__catch$_main$0".
    1>db_test.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall SAConnection::Disconnect(void)" (?Disconnect@SAConnection@@QAEXXZ)" in Funktion "_main".
    1>db_test.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall SAString::~SAString(void)" (??1SAString@@QAE@XZ)" in Funktion "_main".
    1>db_test.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall SAConnection::Connect(class SAString const &,class SAString const &,class SAString const &,enum SAClient_t)" (?Connect@SAConnection@@QAEXABVSAString@@00W4SAClient_t@@@Z)" in Funktion "_main".
    1>db_test.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall SAString::SAString(char const *)" (??0SAString@@QAE@PBD@Z)" in Funktion "_main".
    1>db_test.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall SAConnection::SAConnection(void)" (??0SAConnection@@QAE@XZ)" in Funktion "_main".
    1>C:\Dokumente und Einstellungen\Stefan\Eigene Dateien\Visual Studio 2008\Projects\db_test\Debug\db_test.exe : fatal error LNK1120: 9 nicht aufgelöste externe Verweise.
    1>Das Buildprotokoll wurde unter "file://c:\Dokumente und Einstellungen\Stefan\Eigene Dateien\Visual Studio 2008\Projects\db_test\db_test\Debug\BuildLog.htm" gespeichert.
    1>db_test - 10 Fehler, 0 Warnung(en)
    ========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
    


  • Hast du das, was unter "Sonst noch was" steht gemacht?

    Diesen Fehler gibt es normalerweise, wenn man das nicht richtig linkt. Wie gesagt ich weiss ja nicht, wie das bei der API so läuft, aber das wären so in etwa die Einstellungen, die man so machen muss.



  • Ja hab ich, aber irgendwie klappts nicht, da kommen immer noch die gleichen Fehlermeldungen ...
    Ich mach wohl irgendwas falsch 😞



  • Dieser Thread wurde von Moderator/in evilissimo aus dem Forum C++ in das Forum MFC (Visual C++) verschoben.

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

    Dieses Posting wurde automatisch erzeugt.



  • Hmm, kann mir keiner weiterhelfen?



  • Ich komm echt nicht mehr weiter und die Zeit drängt, es sollte bis Samstag laufen.



  • Na, hast Du denn die Lib unter Projekteigenschaften/Linker/Input/Additional Dependencies eingetragen?
    Löst denn die eingebundene Lib diese Symbole auf? Hast Du da mal reingeschaut?



  • Ja hatte ich, aber es funktionierte immer noch nicht.

    Ich geb euch jetzt einfach noch n bisschen Input, damit ihr mir vielleicht besser weiterhelfen könnt 🙂

    Hier mal ein Ausschnitt aus der ReadMe.txt

    ****************************************************************
    Welcome to SQLAPI++ Library 3.7.24
    ****************************************************************

    1. INTRODUCTION
    Thank you for using SQLAPI++ Library.
    This file contains important notes about the installation and the
    product itself.

    2a. INSTALLATION (Win32 version)
    Files under 'SQLAPI' folder after unpacking the SQLAPI++ self-extracting archive:

    ReadMe.txt - this file
    license.txt - SQLAPI++ license agreement and warranty
    bin\. - SQLAPI++ DLL and sample binaries (read more at bin\index.txt)
    lib\. - dynamic and static librares (read more at lib\index.txt)
    include\.h - public include files
    doc\
    .* - SQLAPI++ documentation in HTML format
    examples\.cpp - SQLAPI++ steps
    amd64\
    - SQLAPI++ precompiled binaries for AMD64 platforms

    These files are only for registered SQLAPI++ version:

    src\.cpp - SQLAPI++ sources
    src\
    .h - SQLAPI++ private headers
    src\Makefile.mvc - SQLAPI++ makefile for MSVC++
    src\sqlapi_msvc.bat - batch file to compile SQLAPI++ (release & debug) for MSVC++
    src\Makefile.bcc - SQLAPI++ makefile for Borland C++ compiler
    src\sqlapi_bcc.bat - batch file to compile SQLAPI++ (release & debug) for Borland C++ compiler
    src\Makefile.mingw - SQLAPI++ makefile for MinGW
    src\sqlapi_mingw.bat - batch file to compile SQLAPI++ (release & debug) for MinGW

    SQLAPI++ binaries are compiled with Microsoft Visual Studio 6.0 (x86) and
    Visual Studio 2005 (x86_64). The multithread- and DLL-specific version of
    the run-time libraries are used. You must recompile the binaries for another
    run-time library configurations. The same is true for Borland
    (Borland C++ Compiler 5.5 is used) and MinGW (MinGW g++ 3.4.2 is used) binaries.

    2b. INSTALLATION (Linux/Unix version)
    Files after the installation:
    ReadMe.txt - this file
    license.txt - SQLAPI++ license agreement and warranty
    bin\* - simple executable to test database connection
    doc\. - SQLAPI++ documentation in HTML format
    examples\.cpp - SQLAPI++ steps
    examples\Makefile - makefile for building SQLAPI++ steps
    include\
    .h - public include files
    lib\. - shared and static SQLAPI++ libraries
    g++-*.tar.gz - archives of SQLAPI++ binaries compiled with different g++ versions

    These files are only for registered SQLAPI++ version:
    src\.cpp - SQLAPI++ sources
    src\
    .h - SQLAPI++ private headers
    src\Makefile - SQLAPI++ makefile for GNU make
    src\sqlapi_gcc - batch file to compile SQLAPI++ (release & debug)

    We recommend to recompile the SQLAPI++ binaries on platform it should be used.

    Hier die Ordnerstruktur im Überblick
    http://www.imgnow.de/?img=1b76jpg.jpg

    Hier der Ordner lib
    http://www.imgnow.de/?img=2f52jpg.jpg

    Hier der Ordner bin
    http://www.imgnow.de/?img=3849jpg.jpg

    Hier der Ordner include
    http://www.imgnow.de/?img=4090jpg.jpg

    Was mich noch irritiert... Da ist ein Ordner namens amd64. Nunja ich hab daheim einen AMD 64 X2 Dualcore Prozessor 3800+

    So also könnt ihr mir jetzt sagen welche Dateien ich wo einbinden muss ^^



  • push...


Anmelden zum Antworten