I was able to compile the ACE library on the snow leopard. However,
when building my own project, I got a bunch of link errors.
Specifically, i got this:
ld: warning: in /Users/anthonyyip/Work/software/ACE_wrappers/
ace/libACE.dylib, file is not of required architecture
I used the config-macosx-snowleopard.h and platform_macosx_leopard.GNU
files.
Are there some flags I need to switch on so that it will compile for
the intel architecture?
Anthony
$ file libACE.dylib
libACE.dylib: Mach-O 64-bit dynamically linked shared library x86_64
here's the output from the linker.. any ideas what is wrong?
Ld build/Debug/DataReplay normal i386
cd /Users/anthonyyip/Work/Projects/DataReplay
setenv MACOSX_DEPLOYMENT_TARGET 10.5
/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/SDKs/
MacOSX10.5.sdk -L/Users/anthonyyip/Work/Projects/DataReplay/build/
Debug -L/Users/anthonyyip/Work/Projects/DataReplay/../../software/
ACE_wrappers/ace -F/Users/anthonyyip/Work/Projects/DataReplay/build/
Debug -filelist /Users/anthonyyip/Work/Projects/DataReplay/build/
DataReplay.build/Debug/DataReplay.build/Objects-normal/i386/
DataReplay.LinkFileList -mmacosx-version-min=10.5 -lACE -o /Users/
anthonyyip/Work/Projects/DataReplay/build/Debug/DataReplay
Will Otte from the DOC group has been working on getting the latest
version of ACE+TAO to build out-of-the-box with Snow Leopard. Will,
can you please let Anthony et al. know the status of this effort? If
things are working now can you also please let us know where to get
the updated files?
Thanks,
Doug
>Actually the output of the "file" command tells me the architecture
>should be correct:
>
>$ file libACE.dylib
>libACE.dylib: Mach-O 64-bit dynamically linked shared library x86_64
>
>here's the output from the linker.. any ideas what is wrong?
>
>Ld build/Debug/DataReplay normal i386
>cd /Users/anthonyyip/Work/Projects/DataReplay
>setenv MACOSX_DEPLOYMENT_TARGET 10.5
>/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/SDKs/
>MacOSX10.5.sdk -L/Users/anthonyyip/Work/Projects/DataReplay/build/
>Debug -L/Users/anthonyyip/Work/Projects/DataReplay/../../software/
>ACE_wrappers/ace -F/Users/anthonyyip/Work/Projects/DataReplay/build/
>Debug -filelist /Users/anthonyyip/Work/Projects/DataReplay/build/
>DataReplay.build/Debug/DataReplay.build/Objects-normal/i386/
>DataReplay.LinkFileList -mmacosx-version-min=3D10.5 -lACE -o /Users/
>anthonyyip/Work/Projects/DataReplay/build/Debug/DataReplay
>
>
>On Nov 12, 6:12=A0pm, yipant <anthony.l....@gmail.com> wrote:
>> Hi,
>>
>> I was able to compile the ACE library on the snow leopard. However,
>> when building my own project, I got a bunch of link errors.
>> Specifically, i got this:
>>
>> =A0 =A0 =A0 =A0ld: warning: in /Users/anthonyyip/Work/software/ACE_wrappe=
>rs/
>> ace/libACE.dylib, file is not of required architecture
>>
>> I used the config-macosx-snowleopard.h and platform_macosx_leopard.GNU
>> files.
>>
>> Are there some flags I need to switch on so that it will compile for
>> the intel architecture?
>>
>> Anthony
>
--
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Vanderbilt University WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203 NET: d.sc...@vanderbilt.edu