error C3861: 'getdate': identifier not found

I have an error C3861: 'getdate': identifier not found. Anyone plz help me to solve it . Thank you .




void WORKING :: issuebook(void)
{
BOOK B ;
MEMBER M ;
DATA D ;
char t1code[33], ch ;
int t2code=0, tcode=0, mcode=0 ;
int valid ;
int d1, m1, y1 ;


struct date d ;
getdate(&d);
d1 = d.da_day ;
m1 = d.da_mon ;
y1 = d.da_year ;
do
{
valid = 1 ;
while (1)
Hello zakk,

Please use the code tag to the right under format, its the <> button. You can edit and highlight your code then press the <> button.

Where is the function getdate() defined? The compiler can not find the function being called. Then you are sending the address of d to the function not the value of d. The use of & may be needed in the function definition, but not in the call. It would also be useful to know what header files you have included.

Hope that helps,

Andy
Last edited on
Topic archived. No new replies allowed.