On Apr 12, 2008, at 5:32 PM, Theodore H. Smith wrote: > > On 12 Apr 2008, at 22:26, Alfred Van Hoek wrote: > >> >> On Apr 12, 2008, at 10:44 AM, Theodore H. Smith wrote: >> >>> I'm having some problems linking in CodeWarrior. >>> >>> I am trying to call two Unix functions. fsync, and fchdir. They link >>> fine in gcc. >>> >>> CodeWarrior however, can't find these functions. I know CodeWarrior >>> has some rudimentary Unix support, but apparantly it doesn't support >>> those. >>> >>> Is there some way I can just link to the standard fsync and fchdir >>> functions from CodeWarrior? Rather than have to find some libs >>> somewhere? I don't get this linking stuff sometimes... >>> >>> OK, when I link, I need a library name, and a function name, right? >>> So... is there something like a libc for Carbon and a libc for >>> Win32? >>> A standard one with all the Unix stuff in it? And can I just link >>> against it? And if so, how? And where do I get that libc from? >> >> >> Are you compiling for MachO? >> >> Alfred > > Good question I should have specified better. > > I compile for Macho, Carbon, Win32 and Linux. I use Xcode for Macho, > and it links perfectly. > > For Carbon, I use CodeWarrior. It can't find fchdir or fsync. I cannot > find where the library functions are, or where they should be! I have > no idea about how to recompile a stub library properly. > > The problem is with CodeWarrior compiling for Carbon.
Carbon is not an executable format. Perhaps you mean to say that you are using Code Warrior to compile to PEF for Carbon. I recall that there is a StdCLib stub library for Carbon PEF in /System/Library/ CFMSupport. You might look there to see if the functions you need are available. Charles Yeomans _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
