Sorry to tell I'd searched 7hrs before I posted my previous post, and I failed to find answer for the issue I met.
It's weird I couldn't find the solution to my issue because I believe it's some general issue.
I installed the latest version of CodeBlocks on my win10, and copied graphics.h and winbgim.h into "include" folder, and libbgi.a into "lib" folder.
Then got the setting done as the screenshot below.
Then got the compiling succeeded, but there's some error happened as the screenshot in my previous post.
Believe, as the friend above told, that it's some issue with the BGI path.
But how to resolve it? Dos any additional BGI must be installed for my simple C code?