Probleme beim Erstellen im Release Mode



  • Hallo,

    ich habe folgendes Problem bei der Release Kompilierung:

    ------ Neues Erstellen gestartet: Projekt: ZeppCon1.0, Konfiguration: Release Win32 ------
    Die Zwischen- und Ausgabedateien für das Projekt "ZeppCon1.0" mit der Konfiguration "Release|Win32" werden gelöscht.
    Kompilieren...
    stdafx.cpp
    Kompilieren...
    ZeppCon0.0.1.cpp
    AssemblyInfo.cpp
    Verwaltete Ressourcen werden kompiliert...
    Liest in den 30-Ressourcen von "e:\Projektordner\Programm C++\Zeppcon\ZeppCon0.0.1\ZeppCon0.0.1\Form1.resx".
    Ressourcendatei wird geschrieben... Fertig.
    Ressourcen werden kompiliert...
    Verknüpfen...
    stdafx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""extern "C" int __stdcall cbDBitIn(int,int,int,unsigned short *)" (?cbDBitIn@@$$J216YGHHHHPAG@Z)".
    stdafx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""extern "C" int __stdcall cbDIn(int,int,unsigned short *)" (?cbDIn@@$$J212YGHHHPAG@Z)".
    stdafx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""extern "C" int __stdcall cbDConfigPort(int,int,int)" (?cbDConfigPort@@$$J212YGHHHH@Z)".
    stdafx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""extern "C" int __stdcall cbDConfigBit(int,int,int,int)" (?cbDConfigBit@@$$J216YGHHHHH@Z)".
    stdafx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""extern "C" int __stdcall cbDOut(int,int,unsigned short)" (?cbDOut@@$$J212YGHHHG@Z)".
    E:\Projektordner\Programm C++\Zeppcon\ZeppCon0.0.1\Release\ZeppCon1.0.exe : fatal error LNK1120: 5 nicht aufgelöste externe Verweise.
    Das Buildprotokoll wurde unter "file://e:\Projektordner\Programm C++\Zeppcon\ZeppCon0.0.1\ZeppCon0.0.1\Release\BuildLog.htm" gespeichert.
    ZeppCon1.0 - 6 Fehler, 0 Warnung(en)
    ========== Alles neu erstellen: 0 erfolgreich, Fehler bei 1, 0 übersprungen ==========

    Das Kompilieren im Debug Mode funktioniert ohne Probleme!!!

    Bin für jede Hilfe dankbar!!



  • Du musst noch die LIB hinzufügen, wo die Funktionen definiert sind... z.. via

    #pragma comment(lib, "name-der.lib")
    


  • Danke Jochen,

    das hat funktioniert!

    MfG Markus


Anmelden zum Antworten