Results 1 to 3 of 3

Thread: GCC and xcode.

  1. #1

    Member Since
    Jun 24, 2010
    GCC and xcode.
    Is it possible to install GCC 4.5 in macos 10.6.4 and use in xcode 3.2.2?If possible how can i install it and use GCC4.5 in xcode 3.2.2?

    How can i build the application using GCC4.5 in OSX 10.6.4 ?

    The problem is our mac application crashes,while enabling openMp.The crash is observed in gomp_resolve_num_threads.
    (GOMP_parallel_start at parallel.c:70
    ----> gomp_resolve_num_threads at parallel.c:48)

    We are using MacOS 10.6.4 ,GCC 4.2 and xcode 3.2.2 .

    Is there any solution for this?

  2. #2

    Member Since
    Feb 25, 2009
    Late 2013 rMBP, i7, 750m gpu, OSX versions 10.9.3, 10.10
    Just out of curiosity, are you sure it's not a bug in your code? I went to OpenMP and compiled their test code on my system with Xcode 3.2.2 and it compiled and ran fine; granted it was extremely simple code, but it does appear that OpenMP is working at least on a basic level...

    here's the code and my output:
    #include <omp.h>
    #include <stdio.h>
    int main() {
    #pragma omp parallel
    printf("Hello from thread %d, nthreads %d\n", omp_get_thread_num(), omp_get_num_threads());
    videoed-imac:test nethfel$ gcc -fopenmp omptest.c
    videoed-imac:test nethfel$ ./a.out
    Hello from thread 0, nthreads 2
    Hello from thread 1, nthreads 2
    videoed-imac:test nethfel$
    My Macs: Late 2013 rMBP w/ 750m; Mac mini G4, 1.25 GHz, 512m ram (server); Late 2011 11" MBA, 1.8GHz i7, 4Gig Ram, 256Gig SSD, HD3000; Powerbook 12" G4 1.33GHz running Debian as a server; Apple TV (1080p version)

  3. #3

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Xcode & gcc
    By namu in forum OS X - Operating System
    Replies: 2
    Last Post: 07-13-2012, 12:15 AM
  2. Installing gcc on Mac OSX without re-installing XCode
    By jigglypuff in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 02-26-2010, 12:16 AM
  3. C Program Trouble Compiling w/GCC, Trouble Running in Xcode
    By ebeccarayray in forum OS X - Apps and Games
    Replies: 1
    Last Post: 09-28-2009, 09:41 PM
  4. XCode - C - GCC options
    By federicog in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 08-21-2007, 02:17 PM
  5. newbie Q - how to wait for keystroke in gcc/xcode ??
    By xr600 in forum OS X - Development and Darwin
    Replies: 3
    Last Post: 05-29-2004, 02:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts