Re: Help me to resolve undefined reference

2002-03-28 Thread Francois Gouget
On Thu, 28 Mar 2002, Ku Cheng wrote: > Andriy, > > After putting the prototype of DisconnectNamedPipe( ) in the winbase.h > file, finally my program can link successfully. Previously I put "extern > bool DsiconnnecrNamedPipe ..." in my source file to avoid compilation > error. But it still failed

Re: Help me to resolve undefined reference

2002-03-28 Thread Ku Cheng
Andriy, After putting the prototype of DisconnectNamedPipe( ) in the winbase.h file, finally my program can link successfully. Previously I put "extern bool DsiconnnecrNamedPipe ..." in my source file to avoid compilation error. But it still failed at linking phase. What is the difference of

Re: Help me to resolve undefined reference

2002-03-28 Thread Ku Cheng
It does work, if it is a c program. However if I change it to C++ program, it does not link in my environment. I have attach the C++ version. Could you try it and let me know. If it works in your machine, it must have something to do with my environment. Thanks for your help again. Ku **

Re: Help me to resolve undefined reference

2002-03-28 Thread Andriy Palamarchuk
I created a tiny example which calls DisconnectNamedPipe, added the function declaration to the header. I was able to successfully compile and link the example. Attaching the example and the patch. I'll submit the patch to CVS. Let me know if the example works for you after applying the patch. A

Re: Help me to resolve undefined reference

2002-03-28 Thread Andriy Palamarchuk
--- Ku Cheng <[EMAIL PROTECTED]> wrote: > I noticed it and I tried to define it in winbase.h > file previously. However > it created many errors. > > Could you tell me what > documentation tells the > purpose of this file and the rules of making change > to this file? Hmm. There should not be

Re: Help me to resolve undefined reference

2002-03-28 Thread Andriy Palamarchuk
It seems the function DisconnectNamedPipe is not defined anywhere in the headers?! Can this be the problem? Try to define it winbase.h (according to the documentation) and check what happens. Does the application, compiled under Windows can call the function? Andriy ___

Re: Help me to resolve undefined reference

2002-03-27 Thread Andriy Palamarchuk
Ku Cheng wrote: > Hi, > Thanks for the quick response. I did search the wine source code and > found stubs for DisconnectNamedPipe and SetNamedPipeHandleState these > two Win32 calls in dlls/kernel/sync.c. > What is the purpose of this sync.c file. > Is this file linked into Kernel32.dll? Oops,

Fwd: Re: Help me to resolve undefined reference

2002-03-27 Thread Ku Cheng
>X-Sender: [EMAIL PROTECTED] >X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 >To: Andriy Palamarchuk <[EMAIL PROTECTED]> >From: Ku Cheng <[EMAIL PROTECTED]> >Subject: Re: Help me to resolve undefined reference >Cc: [EMAIL PROTECTED] >X-MIME-Autoconverted: