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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:36:24+00:00 2026-06-01T08:36:24+00:00

I can build my project in Xcode(4.2) for debugging without issues, but when I

  • 0

I can build my project in Xcode(4.2) for debugging without issues, but when I want to build it for release (build for archiving) I get error:”Typedef redefinition with different types (unsigned int vs unsigned long)”.

Problematic code is:

#ifdef _LZMA_UINT32_IS_ULONG 
typedef long Int32; 
typedef unsigned long UInt32; 
#else 
typedef int Int32; 
typedef unsigned int UInt32; <--error on this line
#endif

You can see whole file on:
http://read.pudn.com/downloads166/sourcecode/zip/758136/C/Types.h__.htm

Previous definition is in MacTypes.h from CoreServices framework.

I have the same preprocessor macros for Debug and Release, and I am using Apple’s LLVM compiler 3.0. Same error happens when I try to build project for analyzing.

Any idea why this 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-06-01T08:36:25+00:00Added an answer on June 1, 2026 at 8:36 am

    In the case where you’re getting the error (when compiling 32 bit) you already have the equivalent of

    typedef unsigned int UInt32; <--error on this line
    

    (hence the error) So you can delete the offending line.

    Apparently not all of your source includes / imports MacTypes.h, so to have it both ways, surround the offending line with #ifdefs like so:

    #ifndef __MACTYPES__
    typedef unsigned int UInt32;
    #endif
    

    Unfortunately this is not perfect; you need to be sure that if MacTypes.h is included, it happens before this. One way to ensure that is to do your system #imports before your local #imports.

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

Sidebar

Related Questions

I get a Undefined symbols error attempting to build an XCode project, and I'm
I can't build successfully project in VS2010 it shows me error: Error 579 Unable
Here is what I get when I try to build my Xcode project: Intermediates/demo2.build/Debug-iphonesimulator/demo2.build/Script-5E564EAC1393823C00BFBA83.sh
Every time I start build my Xcode Project, I get this in the console:
I build my project(include subproject Three20) successfully using xcode GUI,but when I use xcodebuild,it
I have multiple versions of Xcode installed. I can build my project against older
In Delphi 2009, how can I build a project using command line. I tried
I just found the IUI project on google code where you can build websites
I recently started learning JavaFX. At the moment I can't build any JavaFX project
Can we set the build settings for different targets in the project build settings

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.