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

  • SEARCH
  • Home
  • 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 7987013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:01:25+00:00 2026-06-04T12:01:25+00:00

I’m using an old m68k-elf-gcc that doesn’t support C99 on a project, with Eclipse

  • 0

I’m using an old m68k-elf-gcc that doesn’t support C99 on a project, with Eclipse Indigo Service Release 1 as my IDE. One of my cross-project header files has the following code which tests for C99, and if C99 is found, uses stdint.h, or if not, manually defines some of the fixed size _t types:

#if __STDC_VERSION__ >= 199901L /* C99, with support for stdint.h>. */
#include <stdint.h>
#else
/* Make sure to set these up correctly for your system if you don't have stdint.h. */
typedef unsigned short uint16_t;
typedef short int16_t;
typedef unsigned char uint8_t;
#endif

This compiles fine, and uses the lower section where stuff is manually set up. Eclipse’s indexer, however, insists that __STDC_VERSION__ exists, and in fact has the exact value 199901L (that value shows up when hovering the cursor over the macro name). This causes the Eclipse text editor and “Problems” tab to show errors on any line that uses the _t types, even though those lines compile fine.

I know it’s easy enough to work around this particular problem – erase everything but the manual typedefs from my header file – but I would really prefer that the Eclipse indexer have some relation to the compiler version I’m using. I have set the following project properties to make Eclipse aware that I’m using a different GCC:

  • “C/C++ Build”->”Discovery Options:” Set the compiler invocation command to “m68k-elf-gcc”
  • “C/C++ Build”->”Tool Chain Editor:” Set the “Current toolchain” to “Cross GCC”

These seem to have at least some of the desired effect, because the indexer references the correct system includes (goes to the m68k-elf-gcc include directories when perusing headers, not the “vanilla” GCC’s include directories), and the “Includes” and “Symbols” tabs on the “C/C++ General”->”Paths and Symbols” properties screen all match the m68k-elf-gcc stuff (and no, __STDC_VERSION__ is not listed in the Symbols list).

  • 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-04T12:01:26+00:00Added an answer on June 4, 2026 at 12:01 pm

    The actual value of __STDC_VERSION__ used by your compiler is invisible to Eclipse as it is a pre-defined macro rather than being defined in any header file. Eclipse must therefore be getting this value from somewhere else. I believe that it is defined internally within the CDT parser.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am doing a simple coin flipping experiment for class that involves flipping a
I have a French site that I want to parse, but am running into

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.