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.
Related
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
When running my RecursiveASTVisitor program on Objective C codes, I keep getting this warning warning: unknown warning option '-Wno-receiver-is-weak'; did you mean '-Wno-receiver-expr'? [-Wunknown-warning-option]
But I didn't compile it with warnings enabled or have any warning options within my code.
Where does the error warning come from and how can I disable it?
In system:
Fedora 21
Ruby 2.1.7
GCC 4.9.2
I follow the instructions for installing simstring but afer
$ruby extconf.rb
when trying to make and make install, I got an error:
cc1plus: some warnings being treated as errors
Makefile:217: recipe for target 'export_wrap.o' failed
make: *** [export_wrap.o] Error 1
And the entire log of this error is bellow
Error Log
I searched about this error but all of replies are about how to disable Werrors and configure with ignoring werrors.
Is there any solution?I think something not mentioned but i don't know what..
I searched about this error
That's not an error. It's a notification. It notifies that some warnings have been treated as errors.
I searched about this error but all of replies are about how to disable Werrors and configure with ignoring werrors. Is there any solution?
You answered your own question. If the source code of the program generates warnings, and if the compiler is asked to treat warnings as errors, then the compiler will refuse to compile the program. Complete list of possible solutions are:
Fix the source code to not generate warnings. This is a very good idea.
Stop asking the compiler to treat warnings as errors (this is the solution that you already found). You should still fix the code to not generate a warning.
Ask the compiler to ignore the warnings entirely. This is usually a bad idea unless you understand the warning and know what you're doing.
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 am trying to port some windows C++ code to Solaris (Unix). I am compiling the code using CC(the SUN C++ compiler). After some efforts, I only have one warning message left as shown below.
ld: warning: file A.o: attempted multiple inclusion of file
I try to search the warning message. But what I got are some info that this warning can be ignored... Although it is a warning, I would really like to understand it and solve it.
May I know if any one can give me some clue what this warning means?
Thanks,