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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:54:00+00:00 2026-05-26T18:54:00+00:00

So I have a project that I have been compiling on the apple-darwin11-llvm-g++-4.2 compiler.

  • 0

So I have a project that I have been compiling on the apple-darwin11-llvm-g++-4.2 compiler. The project will compile with GCC 4.4.5 on RedHat linux but there are some very strange things going on in the runtime. There are no runtime errors, but the program output is completely different.

I am pretty terrible with GDB so I am and I need to submit this project by midnight tonight for school. Could anyone possibly suggest some things that come to mind that might be causing this? Maybe some known differences between these two compilers that could give me somewhere to look?

I realize this is very vague, I am trying to learn to use gdb so I can figure out what is happening.

  • 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-05-26T18:54:01+00:00Added an answer on May 26, 2026 at 6:54 pm

    To solve this problem I went through the checklist suggested by @AdrianCornish :

    “If the program output is not the same then it is very likely that you are misusing the language and are causing undefined behavior. It is very unlikely that it is a difference in the compilers. Have you initialized all variables before use? Are you allocating and using memory correctly within bounds. Are variables in function initialized to default values?” – Adrian Cornish

    Through this I discovered that there was an integer variable which I had forgotten to initialize to zero in my constructor. Apparently the llvm will automatically initialize variables to zero, while gcc does not.

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

Sidebar

Related Questions

I have a .NET project that I've been compiling with Visual Studio and running
I have a django project that runs on a Linux server, and I've been
I am working on a project that I had been compiling with LLVM 2.6
I have a project that I have been compiling as an x64 project for
I have a project that's been changed and modified in bits and pieces over
We have a project that has been built in Flash and as3. It is
I have a django project that I have been working on as a solo
I have a console project that I have been working on. I added log4net
I have a project on github that I have been working on before. However,
I have been handed this project that has a large number of issues with

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.