User forums > General (but related to Code::Blocks)

something about M_PI

<< < (2/2)

stahta01:
Please post a full re-build log or I will just add you to the list of people not worth helping!

NOTE: WE CAN NOT HELP YOU IF YOU REFUSE TO POST THE GCC COMMAND CAUSING THE ERROR!

https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Tim S.

sodev:

--- Quote from: coutnut on March 11, 2022, 03:40:26 am ---Actually, I use the GNU GCC Compiler in the project.
As for the compiler flags, I picked the -std=c++11.
But error remains.

--- End quote ---

Of course they remain because again you use C++11 without GNU extensions. Specify -std=gnu++11 instead.

stahta01:

--- Quote from: sodev on March 11, 2022, 02:49:28 pm ---
--- Quote from: coutnut on March 11, 2022, 03:40:26 am ---Actually, I use the GNU GCC Compiler in the project.
As for the compiler flags, I picked the -std=c++11.
But error remains.

--- End quote ---

Of course they remain because again you use C++11 without GNU extensions. Specify -std=gnu++11 instead.

--- End quote ---

I would try this suggestion; but, since you will not post more information and the cause and solution seems to vary per my internet searches. A link that gives more things to try https://stackoverflow.com/questions/26065359/m-pi-flagged-as-undeclared-identifier

Tim S.

stahta01:
You may want to read the website rules: https://forums.codeblocks.org/index.php/topic,9996.0.html

Since, you refuse to supply the Code::Blocks information I requested that implies you do not think it is a Code::Blocks related question.

Tim S.

Navigation

[0] Message Index

[*] Previous page

Go to full version