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 7957375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:14:27+00:00 2026-06-04T04:14:27+00:00

I am using g++ version 4.1.2 on a x64_86 GNU linux architecture. Code base

  • 0

I am using g++ version 4.1.2 on a x64_86 GNU linux architecture. Code base is very huge and I don’t have sufficient understanding of makefiles used in the project. The code compiles fine as it is.

For some debugging purpose, I need to preprocess (g++ -E) few source files individually and then re-compile it. I am giving the required include paths using -I. Ideally the compilation should go fine.

But I am getting few discrepancies in standard headers like:

  1. typedef unsigned long size_t; causes errors with operator new()
    declaration generated by compiler (if I change to unsigned int
    manually then this error disappears)
  2. In library functions like unsigned long numeric_limits<>::max(),
    compiler complains for big numbers such as 922...807L; it generates
    compiler error as integer constant is too large for long type
  3. Mismatch declaration of __errorno_location() gives compiler error

I am having hard time finding what is going wrong. Why compilation goes fine when I do make on unchanged file and why standard headers start cribbing when I give g++ -I <> -E option on individual file ?

(Note that there is no problem with the code we have written, it’s just from standard library side. I tried locating the stddef.h which has unsigned int as typedef, but that just fixes the 1st problem. )

Any idea to fix this errors would be highly appreciated.

  • 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-04T04:14:28+00:00Added an answer on June 4, 2026 at 4:14 am

    Don’t preprocess and compile separately, or if you must then use consistent compiler options and a consistent environment.

    It sounds a though you’re running the preprocessor on a 32-bit machine (or using the -m32 option) then compiling on a 64-bit machine.

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

Sidebar

Related Questions

I have set up a NInject (using version 1.5) binding like this: Bind<ISessionFactory>().ToMethod<ISessionFactory>(ctx =>
Maven Jetty plugin is very nice (I'm using version 6.1.26). The only annoying thing
I am very new to nservicebus. I am using version 3.0.1, the last one
Using a version control system for your source code (like subversion ) makes sense
Using version v3.8 I got this behaviour with dragged markers. a) marker.setMap(map) --> Marker
hope all is well. I am using Version 7.0. This morning I was struggling
Let me preface by saying that I'm new to ant, and I'm using version
Ok, so somewhere, something is wrong. When I was using version 1.3 the accordion
Currently using MySQL version 5.1.6 This is my first real world build and so
I am using Server version: Apache/1.3.34 (Debian) mod_perl - 1.29 By refering to STDIN,

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.