K
Kees Hoogendijk
Hi everyone,
Actually I dont know how te explein this, that's why I paste my code below.
I've a main en I've a few header files. After I include the headers, the
compiler shows the errors as this exempel.
Can someone tell me what is here going on?
Tia
Regard,
Wen
Exempel Error:
C:\DOCUME~1\kees\LOCALS~1\Temp\ccCQaaaa.o(.text+0x12f)
[Warning] In function `main':
[Linker error] undefined reference to `Verslag(std::basic_ofstream<char,
std::char_traits<char> >&, Constant&, Client&, ClientHistory&, int)'
AEdi.cpp (main):
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
#include "Decl.hpp"
#include "LeesVerzoeken.hpp"
#include "OpenBestanden.hpp"
#include "SorteerKlant.hpp"
#include "SorteerHistorie.hpp"
#include "SorteerVerzoek.hpp"
#include "LeesKlant.hpp"
#include "Verslag.hpp"
#include "SluitBestand.hpp"
#include "LeesKlantHistorie.hpp"
int main()
{
<code>
}
Verslag.hpp:
#ifndef _Verslag_hpp
#define _Verslag_hpp
#include <iostream>
#include <ctime>
#include <string>
#include <fstream>
#include <iomanip>
#include "Decl.hpp"
using namespace std;
void Verslag ( ofstream& verslag, Constant& ConstantRec, Client& MasterRec,
ClientHistory& KlantHisRec, int klantNr);
#endif
Decl.hpp:
#ifndef _Decl_hpp
#define _Decl_hpp
const int HV= 99999;
struct Client
{
int klantNr;
char soort;
char naam[26];
char adres[26];
char postcode[7];
char plaats[16];
int bankNr;
int giro;
char mutcode;
char tariefAfspr;
};
struct ClientHistory
{
int klantNr;
int recType;
int ingangsDatum;
int volgNr;
int datumWijziging;
char boekSoort[5];
int datumEinde;
float afwijkendTarief;
float vastBedrag;
int maxEenheden;
char omschrijving[31];
char soort;
char naam[26];
char adres[26];
char postcode[7];
char plaats[16];
int bankNr;
int giro;
};
struct Date
{
int dag, maand, jaar;
};
struct Constant
{
Date datumHd;
int dagAanduiding;
char kantoor[16];
char adres[16];
char postcode[7];
char plaats[15];
int giro;
};
struct Request
{
int klantNr;
char aanvrager [15];
char afdeling [10];
};
#endif
Actually I dont know how te explein this, that's why I paste my code below.
I've a main en I've a few header files. After I include the headers, the
compiler shows the errors as this exempel.
Can someone tell me what is here going on?
Tia
Regard,
Wen
Exempel Error:
C:\DOCUME~1\kees\LOCALS~1\Temp\ccCQaaaa.o(.text+0x12f)
[Warning] In function `main':
[Linker error] undefined reference to `Verslag(std::basic_ofstream<char,
std::char_traits<char> >&, Constant&, Client&, ClientHistory&, int)'
AEdi.cpp (main):
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
#include "Decl.hpp"
#include "LeesVerzoeken.hpp"
#include "OpenBestanden.hpp"
#include "SorteerKlant.hpp"
#include "SorteerHistorie.hpp"
#include "SorteerVerzoek.hpp"
#include "LeesKlant.hpp"
#include "Verslag.hpp"
#include "SluitBestand.hpp"
#include "LeesKlantHistorie.hpp"
int main()
{
<code>
}
Verslag.hpp:
#ifndef _Verslag_hpp
#define _Verslag_hpp
#include <iostream>
#include <ctime>
#include <string>
#include <fstream>
#include <iomanip>
#include "Decl.hpp"
using namespace std;
void Verslag ( ofstream& verslag, Constant& ConstantRec, Client& MasterRec,
ClientHistory& KlantHisRec, int klantNr);
#endif
Decl.hpp:
#ifndef _Decl_hpp
#define _Decl_hpp
const int HV= 99999;
struct Client
{
int klantNr;
char soort;
char naam[26];
char adres[26];
char postcode[7];
char plaats[16];
int bankNr;
int giro;
char mutcode;
char tariefAfspr;
};
struct ClientHistory
{
int klantNr;
int recType;
int ingangsDatum;
int volgNr;
int datumWijziging;
char boekSoort[5];
int datumEinde;
float afwijkendTarief;
float vastBedrag;
int maxEenheden;
char omschrijving[31];
char soort;
char naam[26];
char adres[26];
char postcode[7];
char plaats[16];
int bankNr;
int giro;
};
struct Date
{
int dag, maand, jaar;
};
struct Constant
{
Date datumHd;
int dagAanduiding;
char kantoor[16];
char adres[16];
char postcode[7];
char plaats[15];
int giro;
};
struct Request
{
int klantNr;
char aanvrager [15];
char afdeling [10];
};
#endif