开发者

g++ compiler cannot find file cstudio. What's wrong?

开发者 https://www.devze.com 2023-03-30 19:53 出处:网络
I\'m using windows 7 and have installed the GCC compiler. I am compiling a C++ program using the following command:

I'm using windows 7 and have installed the GCC compiler.

I am compiling a C++ program using the following command:

g++ convert.cpp -o convert.exe

But I am getting the following error:

convert.cpp:1:19: fatal error: cstudio: No such file or directory

compilation te开发者_StackOverflowrminated.

Why is that?


There is no standard header called <cstudio>. There is one <cstdio>, though. Maybe that's what you meant.


As the error message indicates, your compiler cannot find the file cstudio.

Remove (or fix) the matching #include to fix the problem.

As suggested by Benoit, you probably meant : #include <cstdio> instead of #include <cstudio> but unfortunately we can't tell without seeing some code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号