Test to remove the liblcms.dylib and dynamic friends.
Take care about the order You feed objects and librarys to the linker.
There should not be any unresolved symbols during linking (at least with
gcc).

Not specifically knowing what You want to do (Carbon-, gtk-application,
Xcode project ...) and not very familiar with osX (I only ported my apps),
the above are generic hints.

If You come from linux (like me):
osX is not ELF based. It uses its own binary model for executeables. This
makes the need of specific handling. You have therefore the apple
documentations available (web or under /Developer/Documentation ...) .
Read the introduction. Maybe You need Rez or similiar tools or feed
-twolevel_namespace or whatever options.

regards
Kai-Uwe


Am 02.07.04, 14:26 +0800 schrieb Peter:

> Oops ! I make my own static library named cms.a and the linker can not
> find it. Later I renamed it into
> lcms.a the linker recognise the library name. However either I link
> with my own made static library or using /usr/local/lib/liblcms.a even
> after running ranlib, the compiler give me this warning message,
>
> ld: warning prebinding disabled because dependent library:
> /usr/local/lib/liblcms.1.dylib is not prebound.
>
> I am sure I have link with the static library but it always comes out
> with the same error message. If the dynamic library is remove, the
> program does not launch.
>
> Right now, the test program + lcms is working with dynamic library only.
>
> Peter.
>
>
>
> On Jul 1, 2004, at 8:40 PM, Kai-Uwe Behrmann wrote:
>
> > Hi Peter,
> >
> > I am not very firm with static linking, but could it be You need to
> > feed
> >  -llcms intead of -lcms to the linker?
> >
> > Hope this helps
> > Kai-Uwe Behrmann
> >
> >
> > Am 01.07.04, 15:27 +0800 schrieb Peter:
> >
> >> Hello Marti,
> >>
> >> I have compile lcms v1.1.3 on Mac OS X (10.3.4 + Dev Tools 1.1), and
> >> it
> >> works successfully.
> >>
> >> 1) However a minor problem, there is typedef clash with Objective C
> >> language (I am using Cocoa with lcms),
> >>
> >> In the lcms.h header file,
> >>
> >> typedef int BOOL;
> >>
> >> but objc.h define BOOL as,
> >>
> >> typedef signed char                BOOL;
> >>
> >> A simple fixed, is to rename BOOL into INTBOOL for lcms.h header file.
> >> Maybe this should be updated for Cocoa for next lcms version ?
> >>
> >> 2) I have a habit of compiled library in static form. I tried to do
> >> this for lcms under OS X but when linking the static library with
> >> program it does not work. Error message produced by the linker,
> >>
> >> ld: can't locate file for: -lcms
> >>
> >> Is it possible to make lcms into static library ?
> >>
> >> Best Regards,
> >>
> >> Peter
> >>
> >>
> >>
> >> -------------------------------------------------------
> >> This SF.Net email sponsored by Black Hat Briefings & Training.
> >> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> >> digital self defense, top technical experts, no vendor pitches,
> >> unmatched networking opportunities. Visit www.blackhat.com
> >> _______________________________________________
> >> Lcms-user mailing list
> >> [EMAIL PROTECTED]
> >> https://lists.sourceforge.net/lists/listinfo/lcms-user
> >>
> >
> >
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Lcms-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/lcms-user
>



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Lcms-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to