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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:03:34+00:00 2026-05-27T11:03:34+00:00

Since Apple do not support GCC 4.6 or GCC 4.7, I just switched to

  • 0

Since Apple do not support GCC 4.6 or GCC 4.7, I just switched to MacPorts’ build of GCC 4.6/4.7. However, I had a problem to build my code in “Universal” architecture.

Traditionally, I’d do g++ -arch i386 -arch x86_64 ... to compile my binary for at least i386/x86_64 architecture. I did some search, and realised that -arch option is only supported by apple’s compilers. So of course it didn’t work with the Macports’. The best I could do is use -m32/-m64 options to specify an architecture I want. However, this will only produce a binary eitherr in i386 or x86_64 format. What I really want is get a binary file in both architecture (Universal) just as been done with the original GCC compilers.

Is this not supported or a known problem? I have tried the whole night looking for answers on Google, but I haven’t get anything useful. So I just start doubt if I am the only one had this problem and I have missed something really important to get it work? Really appreciate if anyone can give me some suggestions.

BTW. I have installed gcc46 +universal variants, but it didn’t produce anything really universal except compiling separate binaries for each architecture.

Xing.

  • 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-27T11:03:35+00:00Added an answer on May 27, 2026 at 11:03 am

    You can combine binaries with different architectures in to a single universal using lipo.

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

Sidebar

Related Questions

I'm trying to compile an application that utilizes cstdint. Since Apple deprecated the gcc,
It's about an year since Apple introduced ARC. I personally haven't tried it yet
Since regular jQuery animations are not fluent on iOS ( .hide() , slideDown() ),
since today im facing a strange problem. When i start my app in my
Apple finally introduced the so called auto-renewable subscriptions yesterday. Since I only have few
This is my code in ASP.Net C# ArrayList myArrayList = new ArrayList(); myArrayList.Add(Apple); myArrayList.Add(Banana);
I have read in the Apple Documentation that StoreKit will not restore subscriptions on
IE8 doesn't support ( for instance, but not exclusive to ) :last-child , so
Since Apple only ships SDK 10.6 with Xcode4, developing PPC applications with Xcode4 became
Since apple's ios update to ios 6 data/local storage for Web Apps and Home

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.