[MINC-users] Problems with linking libraries using Xcode

Ed Gronenschild ed.gronenschild at mi.unimaas.nl
Tue Jun 27 06:07:15 EDT 2006


Hi Jason,

I tried ranlib and that resulted in a successful building of my  
application.

Thanks for the tip.

Ed

On 22 Jun 2006, at 18:00, minc-users-request at bic.mni.mcgill.ca wrote:

> Message: 2
> Date: Thu, 22 Jun 2006 11:31:51 -0400
> From: Jason Lerch <jason at bic.mni.mcgill.ca>
> Subject: Re: [MINC-users] Problems with linking libraries using Xcode
> To: MINC users mailing list <minc-users at bic.mni.mcgill.ca>
> Message-ID: <C39CCB2D-3AC0-4028-AC5A-B0B15E60A236 at bic.mni.mcgill.ca>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> Have you tried rerunning ranlib on each of the .a files?
>
> (I've never used Xcode for minc stuff, but that appears to be what
> the error message suggests)
>
> Jason
>
> On 22-Jun-06, at 9:40 AM, Ed Gronenschild wrote:
>
>> Hi,
>>
>> I'm building my own image processing application with Apple's
>> Xcode 2.3 on a Mac with OS X 10.4.6. I'm linking against the  
>> libraries
>> libbicpl.a, libminc.a, libnetcdf.a and libvolume_io.a, all from the
>> minc-1.4 package for OSX 10.3. In Xcode I've set OS X 10.3.9
>> as cross-develop target SDK.
>> The application runs fine in debug mode, but as soon as I switch
>> to release mode (the application will be used by others) I get
>> linking errors, the same for each of  the minc libraries. For  
>> instance
>> for libbicpl.a:
>>
>> "table of contents for archive: /...../libbicpl.a is out of date;
>> rerun ranlib(1)
>> (can't load from it)"
>>
>> and finally
>>
>> "/usr/bin/gcc-4.0 failed with exit code 1"
>>
>> Does anybody know what to do?
>>
>> Regards,
>>
>> Ed
>>
>> _______________________________________________
>> MINC-users at bic.mni.mcgill.ca
>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users



More information about the MINC-users mailing list