Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

My program seems to compile with the g++ compiler, but not with the gcc compiler. Whats going on?

compiler gcc going program
0
Posted

My program seems to compile with the g++ compiler, but not with the gcc compiler. Whats going on?

0

g++ is the compiler for C++ programs, while gcc is the compiler for C programs. You should be using only gcc, as your program is to be written in C, not C++. If you are getting errors with gcc, it means that your program contains some elements of C++ that must be removed or converted into ordinary C.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.