Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
435 views
in Technique[技术] by (71.8m points)

g++ - How to hide a single header file from gcc

I am compiling a c++ project and trying to find all what all functions from ncurses.h are used throughout the project. I was wondering if I can tell gcc to not include specifically ncurses.h?

question from:https://stackoverflow.com/questions/65945686/how-to-hide-a-single-header-file-from-gcc

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I ended up passing -D__NCURSES_H=1 on command line. ???♂?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...