Linker Fehler 2001 und 2019



  • Ich bekomme folgende Fehlermeldung.

    Ich habe ein neues Projekt gestartet und die Dateien
    um-gpib.h
    um-gpib.cpp
    gpibdevices.h
    gpibdevices.cpp

    hinzugefügt.

    Die .cpp Dateien laden dabei jeweils die .h Dateien
    In einem anderen Projekt wo ich diese Dateien her habe kompiliert das ganze auch und wird gelinkt.

    In meinem neuen Projekt kompiliert es auch, bekomme aber diese Fehler und bin etwas ratlos.

    1>GPIBDevices.obj : error LNK2001: Nicht aufgelöstes externes Symbol "_ibsta".
    1>UM-Gpib.obj : error LNK2001: Nicht aufgelöstes externes Symbol "_ibsta".
    1>GPIBDevices.obj : error LNK2001: Nicht aufgelöstes externes Symbol "_ibcntl".
    1>UM-Gpib.obj : error LNK2001: Nicht aufgelöstes externes Symbol "_ibcntl".
    1>GPIBDevices.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ReceiveSetup@8" in Funktion ""public: long __thiscall GPIB_LeCroy::ReadData(int,unsigned short *,long)" (?ReadData@GPIB_LeCroy@@QAEJHPAGJ@Z)".
    1>GPIBDevices.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ibtmo@8" in Funktion ""public: long __thiscall GPIB_LeCroy::ReadData(int,unsigned short *,long)" (?ReadData@GPIB_LeCroy@@QAEJHPAGJ@Z)".
    1>UM-Gpib.obj : error LNK2001: Nicht aufgelöstes externes Symbol "_ibtmo@8".
    1>GPIBDevices.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ibclr@4" in Funktion ""public: int __thiscall GPIB_EGGLockIn::CreateLockIn(int)" (?CreateLockIn@GPIB_EGGLockIn@@QAEHH@Z)".
    1>UM-Gpib.obj : error LNK2001: Nicht aufgelöstes externes Symbol "_ibclr@4".
    1>UM-Gpib.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ibonl@8" in Funktion ""public: __thiscall GPIB_Board::~GPIB_Board(void)" (??1GPIB_Board@@QAE@XZ)".
    1>UM-Gpib.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ibdev@24" in Funktion ""protected: void __thiscall GPIB_Device::GPIB_Device_Init_Without_Reset(int,int)" (?GPIB_Device_Init_Without_Reset@GPIB_Device@@IAEXHH@Z)".
    1>UM-Gpib.obj : error LNK2001: Nicht aufgelöstes externes Symbol "_ibcnt".
    1>UM-Gpib.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_Receive@20" in Funktion ""protected: void __thiscall GPIB_Device::GPIB_In(unsigned char *,long)" (?GPIB_In@GPIB_Device@@IAEXPAEJ@Z)".
    1>UM-Gpib.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ibwrt@12" in Funktion ""protected: void __thiscall GPIB_Device::GPIB_Out(char *)" (?GPIB_Out@GPIB_Device@@IAEXPAD@Z)".
    1>UM-Gpib.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ibwait@8" in Funktion ""protected: void __thiscall GPIB_Device::GPIB_WaitForIOComplete(void)" (?GPIB_WaitForIOComplete@GPIB_Device@@IAEXXZ)".
    1>UM-Gpib.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ibrsp@8" in Funktion ""protected: void __thiscall GPIB_Device::GPIB_WaitForSRQ(char)" (?GPIB_WaitForSRQ@GPIB_Device@@IAEXD@Z)".
    1>UM-Gpib.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ibloc@4" in Funktion ""public: void __thiscall GPIB_Device::GPIB_GoLocal(void)" (?GPIB_GoLocal@GPIB_Device@@QAEXXZ)".
    1>UM-Gpib.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ibsre@8" in Funktion ""public: void __thiscall GPIB_Device::GPIB_GoLocal(void)" (?GPIB_GoLocal@GPIB_Device@@QAEXXZ)".
    1>UM-Gpib.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ibtrg@4" in Funktion ""protected: void __thiscall GPIB_Device::GPIB_Trigger(void)" (?GPIB_Trigger@GPIB_Device@@IAEXXZ)".
    1>UM-Gpib.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_SendIFC@4" in Funktion ""protected: int __thiscall GPIB_Board::GPIB_Board_Init(void)" (?GPIB_Board_Init@GPIB_Board@@IAEHXZ)".
    1>UM-Gpib.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ibrsc@8" in Funktion ""protected: int __thiscall GPIB_Board::GPIB_Board_Init(void)" (?GPIB_Board_Init@GPIB_Board@@IAEHXZ)".
    1>UM-Gpib.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ibfindA@4" in Funktion ""protected: int __thiscall GPIB_Board::GPIB_Board_Init(void)" (?GPIB_Board_Init@GPIB_Board@@IAEHXZ)".
    1>UM-Gpib.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_SendList@20" in Funktion ""public: int __thiscall GPIB_Board::FindListener(char *)" (?FindListener@GPIB_Board@@QAEHPAD@Z)".
    1>UM-Gpib.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_FindLstn@16" in Funktion ""public: int __thiscall GPIB_Board::FindListener(char *)" (?FindListener@GPIB_Board@@QAEHPAD@Z)".
    1>UM-Gpib.obj : error LNK2001: Nicht aufgelöstes externes Symbol "_iberr".
    

    Matthias



  • Die Meldung ist doch eindeutig - der Linker findet die Funktionen nicht (ergo fehlt dort eine LIB).



  • Wenn ich auf der CD von National Instruments eine Dokumentation gefunden hätte, sowie die entsprechenden Dateien wäre mir das auch schon vorher aufgefallen...

    Nachdem ich jetzt die GPIB-32.obj gefunden habe (allerdings auch nicht auf der NI-CD) und ins Projekt eingefügt habe linkt es.

    Matthias


Anmelden zum Antworten