User forums > Using Code::Blocks

'fprint' was not declared in this scope|

(1/2) > >>

petec:
When I try to build I get the error below:

main.cpp|18|error: 'fprint' was not declared in this scope|

My code includes:
#include <stdio.h>

I found 3 files named stdio.h in the Code::Blocks directorys.
None of them have fprint in them.
I am using Code::Blocks 17.12 on Windows 8.1

oBFusCATed:
https://en.cppreference.com/w/cpp/io/c/fprintf

Next time please use a search engine... And read the rules of the forum before posting...

petec:
I don't think it is appropriate for you to chastise me for not using search engines,
I searched and followed the links including stackoverflow and couldn't find a solution.

Now, tell me, what was I supposed to find in that link you gave me that would solve my problem!  I read it top to bottom three times.

I also did a ctrl-f on the page and searched it for "declared" and "scope" and neither words are on the page.

Big help you are!

Pete

sodev:
I'm afraid no one can help you. Not even Google. If you can't see after reading the page three times that the function is called fprintf, maybe visit a doctor?

raynebc:
It was appropriate for you to be chastised, as you ignored the purpose of this forum as a resource for help using the IDE and not programming help in general.  Keep practicing and you'll learn to be able to solve these issues yourself.

Navigation

[0] Message Index

[#] Next page

Go to full version