Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'_fileno' was not declared in this scope #43

Closed
jimobama opened this issue Feb 17, 2016 · 2 comments
Closed

'_fileno' was not declared in this scope #43

jimobama opened this issue Feb 17, 2016 · 2 comments

Comments

@jimobama
Copy link

'_fileno' was not declared in this scope;
At first I was though I needed to stdio.h in other for it to work file , I try it I found is not my problem, but the library issue so decided to passed it.
I have check online if this common problem , I have notice that alot of furum have discussed about it ut none of them actual solved it. When I ignore the line of the code at 4925 in CImg.h it compile okay.

@dtschump
Copy link
Collaborator

Maybe some additional info about your environement (OS, compiler, version ?) could help to make me understand what happens.
Thanks.

@dtschump
Copy link
Collaborator

Searching for this problem on the Internet makes clear that it is actually a bug in stdio.h that happens when the -std=c++11 flag is enabled. There are multiple work-around, like using flag -std=gnu++11 instead.
See : http://stackoverflow.com/questions/22081825/compiling-cimg-with-c0x-and-mingw

This is not something I can fix in the header file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants