core.sys.posix.unistd link error

Ruslan Mullakhmetov nobody at example.com
Sun Sep 22 02:46:41 PDT 2013


Didn't catch. How can I use it at runtime? I can not link to 
actually C function?

On Saturday, 21 September 2013 at 19:40:48 UTC, Jonathan M Davis 
wrote:
> On Saturday, September 21, 2013 20:30:00 Ruslan Mullakhmetov 
> wrote:
>> i use pipe() syscall from my program. when i compile it I got 
>> the
>> following msg:
>> 
>> Error: pipe cannot be interpreted at compile time, because it 
>> has
>> no available source code
>> 
>> how can i fix it?
>> 
>> dmd 2.063.2, Mac OS X
>
> It sounds like you're trying to use pipe at compile time, and 
> as the error
> says, you can't use it at compile time, because no source code 
> for it is
> available. The same goes for all C functions. They can only be 
> used at
> runtime.
>
> - Jonathan M Davis



More information about the Digitalmars-d-learn mailing list