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: "Theodore H. Smith" <delete at elfdata dot com>
Date: Sat, 12 Apr 2008 22:48:26 +0100
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> <522C4329-1986-4E3C-8124-76D4A427F703 at great-white-software dot com>
On 12 Apr 2008, at 22:40, Norman Palardy wrote:

>
> On 12-Apr-08, at 3: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.
>
> What version of CW ?
> fchdir doesn't seem to exist in any of the headers for my install of
> CW 8
> chdir does

Well... I was hoping to use the standard Unix fchdir. So I just want  
to link against it. It does exist in Carbon, right?

I'm using CW8. fchdir does not exist in my CW headers. I could just  
use the standard unix headers that apple supplies. But I don't what  
library to link against. Or how to create my own stub library.


_______________________________________________
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>