• 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 libraries with nested functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building libraries with nested functions


  • Subject: Building libraries with nested functions
  • From: Bill Northcott <email@hidden>
  • Date: Tue, 29 May 2007 16:34:03 +1000

TN2161 says that -fnested-functions can be passed to the compiler driver in a link command to send the "-allow_stack_execute" flag to the linker.

However, libtool seems to choke on it thus:
gcc -B ../../tools -dynamiclib -fnested-functions  -o .libs/libswarm.0.0.0.dylib  .libs/SwarmEnvironment.o .libs/classList.o  .libs/libswarm.lax/libspace.a/Ca2d.o 
*** lots of objects removed ****
.libs/libswarm.lax/libswarmobjc.a/thr.o   -L/Library/Frameworks/Swarm.framework/Versions/Current/Resources/lib -L/Library/Frameworks/Tk.framework/Versions/8.4-X11/lib -L/usr/X11R6/lib -lpthread /Library/Frameworks/Swarm.framework/Versions/Current/Resources/lib/libffi.dylib -lBLT24 -lXpm /Library/Frameworks/Swarm.framework/Versions/Current/Resources/lib/libpng12.dylib /Library/Frameworks/Swarm.framework/Versions/Current/Resources/lib/libhdf5.dylib -lz -lX11 -lm -ldl  -Wl,-search_paths_first -framework CoreFoundation -framework CoreFoundation -framework Tk -framework Tcl -install_name  /Library/Frameworks/Swarm.framework/Versions/2.2/lib/libswarm.0.dylib -Wl,-compatibility_version -Wl,1 -Wl,-current_version -Wl,1.0
/usr/bin/libtool: unknown option character `l' in: -allow_stack_execute
Usage: /usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT]
Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]
make[4]: *** [libswarm.la] Error 1

Ho hum

Is there a way around this?

Thanks
Bill Northcott
 _______________________________________________
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

  • Prev by Date: Re: SDK number and system version.
  • Next by Date: Re: SDK number and system version.
  • Previous by thread: Re: associate an Executable with an Aggregate Target?
  • Next by thread: Controlling resource usage when debugging
  • Index(es):
    • Date
    • Thread