LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Warnings treated as errors (https://www.linuxquestions.org/questions/fedora-35/warnings-treated-as-errors-464379/)

smallfire 07-15-2006 03:57 PM

Warnings treated as errors
 
Hi!

Compiler version: gcc (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3)

I was trying to build libraries from source given by a module that I will hooked up to my host computer. The build process kept being terminated everytime warnings are being found.

How do I bypass the warnings and continue compiling? I really need to build this library to develope my program.

Thanks.

raskin 07-15-2006 04:37 PM

If warnings are not serious, find where -Werror is set and replace it with -Wno-error.

smallfire 07-15-2006 10:52 PM

How do I find out where Werror is set? I'm completely new to gcc and I saw other threads that says I can do that as well with the same command. I typed the command but it didn't work. I was wondering maybe I'm missing something. If you don't mind, please bring me through this process step by step.

Thank you for your reply.

raskin 07-16-2006 11:47 AM

Well, first try
export CFLAGS=-Wno-error
and build the library. And say, what is the build system.

smallfire 07-17-2006 12:08 AM

The library has compiled properly now. Thanks for your help.


All times are GMT -5. The time now is 03:46 PM.