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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:30:36+00:00 2026-05-23T18:30:36+00:00

When building C++ projects using make on OSX 10.6, I have determined that the

  • 0

When building C++ projects using make on OSX 10.6, I have determined that the preprocessor definition __LP64__ seems to be always automatically set by the compiler (i.e., it is not defined in any header file) (see Where is __LP64__ defined for default builds of C++ applications on OSX 10.6?). This leads to the question: Is it even possible to build a 32-bit application on OSX 10.6 that targets (and runs) on another OSX 10.6 system?

I have heard that OSX 10.6 is always a 64-bit OS – that it’s not even possible to run OSX 10.6 as a 32-bit operating system. If this is the case, it would make sense that it is impossible to build a 32-bit application on OSX 10.6 that will run on another OSX 10.6 system.

I need to know this so I can know whether I’m building a 64-bit application or not (I have been attempting to build my current project as a 32-bit application, since the corresponding Windows version is also being built as 32-bit – but perhaps I need to enable all 64-bit flags and build the OSX 10.6 version of this application as a full-fledged 64-bit application).

  • 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-23T18:30:37+00:00Added an answer on May 23, 2026 at 6:30 pm

    Yes, it is perfectly possible to do that. One limited demonstration:

    $ tar -xf Packages/range-1.14.tgz
    $ cd range-1.14
    $ ls
    COPYING   Makefile  README    gpl-3.0.txt range.c   range.mk  stderr.c  stderr.h
    $ rmk CC='gcc -m32'
        gcc -m32 -g     -c stderr.c
        gcc -m32 -g     -c range.c
        gcc -m32 -o range -g     stderr.o range.o  
    $ file range
    range: Mach-O executable i386
    $ rmk -u CC='gcc -m64' 
        gcc -m64 -g     -c stderr.c
        gcc -m64 -g     -c range.c
        gcc -m64 -o range -g     stderr.o range.o  
    $ file range
    range: Mach-O 64-bit executable x86_64
    $ 
    

    rmk -u is equivalent to (GNU) make -B. This GCC is my home-built 4.6.0. You can do more with the Apple-provided versions of GCC – like cross-compiling and/or universal builds.

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

Sidebar

Related Questions

I have an msbuild project file that is used for building several C++ projects
In relatively big projects which are using plain old make , even building the
I'm using qmake for building a project of mine. I have been trying to
I Keep building projects and then have to do a find and replace for
I have created an MSBuild tasks for building my projects, but for various reasons
While building several different projects in QtCreator, I have run across the following build
I'ld like to automatically detect (using #ifdef) whether I'm building using XCode or using
I have a problem that is not uncommon when building a plug-in architecture. Assembly
I'm building an application that is composed of two projects: common and theApp .
I am building a C++ application, using Netbeans 6.9 as my IDE. I have

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.