Recently, I am trying to compile a project with a dependency package called "dealii", but I keep getting this error when compiling:
g++: error: unrecognized command line option '-Wplacement-new'
It seems that g++ does not recognize the option -Wplacement-new. Then I looked at the documentation for gcc, it says -Wplacement-new is a legal warning option flag. But when I invoke "gcc -Wplacement-new ./a.c" I still get this kind of error.
My g++, etc are the latest version. Does anyone know how to fix it? Thanks
Related
I am using code where auto is used for function. It compiles well on gcc compiler on linux machine. When I using the same function in android native, it is throwing the error
clang++: error: unknown argument: '-fconcepts-ts'
-fconcepts-ts is optional on linux machine as without it , we only get a warning.
But for android native build, I am not understanding where to fix this.
I updated build.gradle to reflect the cppflags for c++17
cppFlags '-std=c++17'
However, it is not recognizing the -fconcepts-ts flag at all.
Please help.
ifort: command line warning #10006: ignoring unknown option
'-fallow-argument-mismatch'
I get the above error while using make command in CosmoMC/source
directory.
Can anyone help me out with this?
What you got is just a warning, not an error. You can safely ignore it, unless the missing option causes some other error down the line.
The issue is exactly what the warning message says, fallow-argument-mismatch is a gfortran option, not an Intel Fortran option.
I am using c++ 11 i guess as per code::blocks. I was looking for a way to update to C++ 14. I found a way on one of the threads where it told me to add a flag in the compiler settings
-std=c++14
My default compiler is set to GNU GCC.
However after i tested a C++ 14 feature program it showed me the following error:
error: unrecognized command line option '-std=c++14'
Can anyone help me with this ? I was unable to find a solution online.
Also if what i did was wrong , is there any other way to switch to C++ 14?
I've used CodeRunner (http://krillapps.com/coderunner) for a long time but recently I can't compile any C or C++ code in it. This started happening around the time I updated to Xcode 5.1. I can still compile and run as normal in Xcode.
When I try to run in CodeRunner, the following error is printed.
clang: error: unknown argument: '-finput-charset=UTF-8' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
There is already a solution for Objective C:
Clang error when compiling in CodeRunner
Does anyone know how to modify the script for C++/ C?
Thanks in advance.
There is a similar bug with the object-c compilation, the link to fix that is
Clang error when compiling in CodeRunner,
and you just need do as below for the c/c++ situation:
g++ "$1" -o "$compname" -finput-charset=${enc[$2]} $3
g++ "$1" -o "$compname" $3
I am trying to compile ncurses-5.7 from source and after running ./configure I get the following error:
configure: error: Your compiler does not appear to recognize prototypes.
You have the following choices:
a. adjust your compiler options
b. get an up-to-date compiler
c. use a wrapper such as unproto
how can I fix this error?
As configure output suggests, you should either install an HPUX version of gcc or use unproto as a wrapper
Commenting the following line in configure file worked.
export CC="cc"
Got the answer from Here.