Hello,
I'm doing a project for college, in C / C ++ (more C language than C ++), and I'm having a serious problem with the fread () function.
DataManipulation.h | 88 | Error E2285: Could not find a match for 'fread(_CLIENTE,unsigned int,int,FILE *)' in function retornaClientes()
DataManipulation.h | 88 | Error E2268: Call to undefined function 'fread' in function retornaClientes()|
Solutions that have already proposed to me: - Verify that the function name and parameters are correct; - Check if the corresponding library is imported, in this case it is stdio.h;
I got this same error with other library functions that I created myself, but I always solved in "gambiarra" mode, running away from the real solution, but now I have the problem in a native library function, and I do not have how to do a "gambiarra", then I need to solve this problem with the function, and of course, apply it to all functions that are also "buggy" but working on the basis of gambiarra.
What I'm saying is copying the function (implementation of it) and creating an identical one inside the same library that is giving the problem, but there it is, fread () belongs to stdio.h, and I do not have like "to give this way".
Line of code where I use fread ():
fread(recebeRegistro, sizeof(_CLIENTE), 1, base_cliente); //lê o registro
Line importing libraries:
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <time.h>
#include <string.h>
I use IDE Code :: Blocks and the Borland 5.5 compiler
Thank you in advance.