error: variable or field declared void

hello why I am getting this error

error: variable or field createBinaryFile declared void

void createBinaryFile(std::fstream&, std::ifstream&);
It would help if you posted the code around that. We'll also need to see if you've provided a declaration for std::ifstream and std::fstream.

Also, we would prefer if you posted the full error, rather than and edited version.
Last edited on
I included #include <fstream> and its working, thanks
Topic archived. No new replies allowed.