开发者

C/C++ Headers in NetBeans

开发者 https://www.devze.com 2022-12-28 06:38 出处:网络
I installed IDE NetBeans for C/C++ development. I created C project with main.c and makefile generated netbeans. When i add test.h file in my project and try to compile it, i see that netbeans does no

I installed IDE NetBeans for C/C++ development. I created C project with main.c and makefile generated netbeans. When i add test.h file in my project and try to compile it, i see that netbeans does not see this header file, and that I would not write it, even if th开发者_如何学编程ere are errors anyway compilation is successful. How to connect a header file in netbeans?

Thanks.


h-file is compiled only when it is included to c/cpp file:

#include "test.h"
0

精彩评论

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