realbasic-plugins
[Top] [All Lists]

Re: CodeWarrior linking problems, missing fsync and fchdir

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: CodeWarrior linking problems, missing fsync and fchdir
From: Charles Yeomans <yeomans at desuetude dot com>
Date: Sat, 12 Apr 2008 18:10:42 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <9E00CE5F-0AE2-448A-B7F1-070939E5B1EA at elfdata dot com> <44BEB441-2996-4CFD-BA0D-DDB7295C15F5 at mac dot com> <CAB043BE-6C66-4CAD-B6EA-56D9815206AC at elfdata dot com>
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>


<Prev in Thread] Current Thread [Next in Thread>