Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7715671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:26:45+00:00 2026-06-01T02:26:45+00:00

Problem with compiling. gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2) c89 cmake version 2.8.7

  • 0

Problem with compiling.

gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2)
c89
cmake version 2.8.7

Not sure how to start with this one. I have googled it but couldn’t come up with anything.

This is the warning I am getting:

<command-line>:0:11: warning: extra tokens at end of #undef directive [enabled by default]

I am using cmake as the build system that creates the Makefile that I will compile. However, I am not sure why I am getting this warning. I have never had that before.

Can any one point me in the right direction. I am not sure what information I should provide to help solve this problem.

Many thanks for any suggestions,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:26:47+00:00Added an answer on June 1, 2026 at 2:26 am

    I would expect a warning like this if you had a line like the following in one of your source files:

    #undef FOO BAR BAZ
    

    The BAR and BAZ are ignored by the compiler, hence the warning. What’s at character 11 of your command-line? Can you post the command line?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one problem compiling gcc 4.6.2 under ubuntu 11.10. The error is quite
I have a problem in 'c' language inside compiling with gcc. I am using
I have a problem with compiling an Oracle trigger via SQL*PLUS - I don't
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
Compiling on linux using gcc. I would like to convert this to hex. 10
Hey there, I have a small problem with compiling and linking with the command
Actually I've a problem with compiling some library with intel compiler. This same library
I have a problem while compiling my code ( undefined reference to 'yylex' ).
I have the following problem compiling a C++ file from a third-party library in
As a follow-up of this question (Message compiler replacement in Linux gcc), I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.