Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old July 7th, 2008, 01:45 PM
ashnin
Guest
 
Posts: n/a
Default GCC 3.4.3 and GCC 4.1.2

Hi,

Please clarify my doubt.

My source dir contains combination of C and C++ files
If I compile it using gcc 3.4.3 version, it works fine with some easy
warnings which I can clear.

But if I compile it using gcc 4.1.2 it throws a warning for each .cpp
file I compile, which I could not clear

"cc1plus: warning: command line option "-Wdeclaration-after-statement"
is valid for C/ObjC but not for C++"

What is the difference between both the compilation? Why is it
throwing this warning when using gcc 4.1.2? How to avoid this? Is this
anything to do with the specs file?

Regards
ashnin
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,338 network members.