简体   繁体   中英

cc1plus: some warnings being treated as errors

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM