Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cpp: "-c" is not a valid option to the preprocessor

I'm trying to build a package on a RedHat system. First, I ran ./configure CXX=cpp, because /usr/bin/cpp is the C++ compiler on that system. But when I run make, it dumps:

cpp: "-c" is not a valid option to the preprocessor

When I do a Google search, I found a number of complaints, but no solutions. Anyone else encounter this?

like image 600
Lawrence I. Siden Avatar asked Nov 28 '22 11:11

Lawrence I. Siden


1 Answers

cpp is the C preprocessor; perhaps you mean cc (the C compiler) or gcc (for GNU C compiler) or g++ (for the GNU C++ compiler)?

like image 118
James McNellis Avatar answered Dec 06 '22 20:12

James McNellis