error beim DLL übersetzen



  • Hallöchen an alle,
    ich soll eine datei auslesen und das aus einer dll heraus.
    nun wenn ich das programm übersetze bekomme ich eine unschönen fehler
    nun probiere ich schon seit zweitagen herum habt ihr eine idee....
    io.h datei

    #include <string>
    #include <algorithm>
    #include <iterator>
    #include <stdio.h>
    
    using namespace std;
    
    namespace readFiel{
      class ODKAWLdata{
        public: 
          int* mydata();
    	};
    }
    

    io.cpp

    #include "io.h"
    
    namespace readFiel{
    	int* ODKAWLdata::mydata(){
    		int ret=0;
    		const int j=100;
    		char odk_awl[j]="";
    		int set=0,set2=0,set3=0,TagCodestart=0;
    		if(!TagCodestart){
    			FILE *stream;
    			stream=fopen("odk_db.awl", "rb" );
    ......
    

    hier der fehler

    io.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__fopen" in Funktion ""public: int * __thiscall readFiel::ODKAWLdata::mydata(void)" (?mydata@ODKAWLdata@readFiel@@QAEPAHXZ)".

    danke für eure hilfe


Anmelden zum Antworten