• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Building shared objects in Xcode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building shared objects in Xcode?


  • Subject: Building shared objects in Xcode?
  • From: Anand Patil <email@hidden>
  • Date: Sun, 25 Dec 2005 11:42:29 -0800

Hi all,

I'm a novice C programmer trying to turn C function libraries into shared
objects that can be loaded by the statistical language R.

I know how to compile them as 'external targets' using Make, but Xcode 1.1
doesn't seem to actually show any compiler errors for external targets or
allow you to load them in the debugger, so I'd like to build them as native
Xcode projects.

A Makefile that works follows. How would I build an equivalent shored
object in Xcode?

Thanks very much in advance,
Anand


CC = gcc -O3 -Wall

RPP = g++ -bundle -flat_namespace -undefined suppress

OBJS = marcdemo_c_file.o

all: marcdemo_shared_object

clean:
- rm -i *.o


marcdemo.o: ${OBJS} marcdemo_c_file.c
${CC} -c marcdemo_c_file.c

marcdemo_shared_object: ${OBJS} marcdemo_c_file.o
${RPP} -o marcdemo_shared_object.so ${OBJS}

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Building shared objects in Xcode?
      • From: Art Isbell <email@hidden>
    • Re: Building shared objects in Xcode?
      • From: Markus Hitter <email@hidden>
  • Prev by Date: XCode doesn't make data files
  • Next by Date: Re: XCode doesn't make data files
  • Previous by thread: Re: XCode doesn't make data files
  • Next by thread: Re: Building shared objects in Xcode?
  • Index(es):
    • Date
    • Thread