Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / October 2005



Tip: Looking for answers? Try searching our database.

weak linking to framework and dylib

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CodeCracker - 22 Oct 2005 06:54 GMT
Hi,
I was already using he -weak_framework and -weak_dylib option in my
.lcf file in CodeWarrior 8.0 but when I changed to Codewarrrior 9.6 I
find that the same file is not working.  Until CW 8.0 I was getting
call in my main() and I was able to handle and provide information to
the user that the dylib or framework is missing. But since I moved to
CW 9.6 I see  that I am not getting control in my main(). The
application crashes before this happens.
Is there something special (or in addition to what I have already done)
I have to do in 9.6 to achieve the same.

Thanks,
CodeCracker
Greg - 27 Oct 2005 15:18 GMT
> Hi,
> I was already using he -weak_framework and -weak_dylib option in my
[quoted text clipped - 6 lines]
> Is there something special (or in addition to what I have already done)
> I have to do in 9.6 to achieve the same.

I would check the release notes to see if they mention anything about
the linker. Otherwise, you may want to perform your check for the
weakly-linked libraries before main() is called. You can define your
own start routine that calls the existing start routine and place your
check there.

It's possible that there is some global object that is dependent on
those weakly-linked frameworks that causes the crash. The crash log or
debugger should help pin the problem down.

Greg
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.