LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-15-2006, 03:57 PM   #1
smallfire
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Rep: Reputation: 0
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.
 
Old 07-15-2006, 04:37 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
If warnings are not serious, find where -Werror is set and replace it with -Wno-error.
 
Old 07-15-2006, 10:52 PM   #3
smallfire
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Original Poster
Rep: Reputation: 0
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.
 
Old 07-16-2006, 11:47 AM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Well, first try
export CFLAGS=-Wno-error
and build the library. And say, what is the build system.
 
Old 07-17-2006, 12:08 AM   #5
smallfire
LQ Newbie
 
Registered: Jul 2006
Posts: 17

Original Poster
Rep: Reputation: 0
The library has compiled properly now. Thanks for your help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Turn off "Warnings treated as errors" lucky6969b Programming 2 03-15-2006 08:34 AM
Errors and warnings after logging out of KDE? Slovak Slackware 7 10-17-2005 04:56 AM
many warnings new programmer probably making small errors mshinska Programming 3 10-04-2005 11:40 AM
log warnings and errors - are these serious? bcal Fedora 3 02-12-2005 04:13 PM
Errors and warnings when I exit X cragwolf Slackware 5 09-01-2004 01:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration