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

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to