Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20020117132158.29370.qmail@web20810.mail.yahoo.com> Date: Thu, 17 Jan 2002 05:21:58 -0800 (PST) From: Brian Genisio Subject: Re: problem - system api on winnt To: "Guntupalli, Santhi" , "'cygwin-xfree AT cygwin DOT com'" , cygwin AT cygwin DOT com In-Reply-To: <177E503C4DA3D311BC9D0008C791C30607253C75@diexch01.xko.dec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Wrong Group. I have forwarded your question to cygwin AT cygwin DOT com. This group is for XFree related questions. I did not have any problems compiling your example code in Win2K. (I linked against stdc++) Hopefully they can help you. Brian --- "Guntupalli, Santhi" wrote: > > > Hi, > > I installed Cygwin Dll 1.3.6. I am working on Win NT. > > I built the sources in cygwin sucessfully. > > I have to use this application executable on some other win nt > > system which does not have cygwin. > > > > When i run my application from winnt promt it is returning for > > system api return code 127. > > I copied only cygwin1.dll to that system. > > This is sample program. > > Implementation of copy command. > > > > sample.cpp: > > > > int main() > > { > > > > int exit_code=::system("cp test.cpp test1.cpp"); > > cout< > } > > > > I built the sample.cpp in cygwin. i got the executable. when run > > executable from cygwin prompt system api is executing the command > > properly and returns exit_code as 0. > > > > When i copy the same executable to some other machine which does not > > have cygwin and i run it from winnt cmd promt > > > > system api is returning error code as 127. It is not executing > > system api. > > cygwin1.dll is in path. > > Not only cp command, it is returning same error code for all other > > commands. > > > > What could be the problem. i need to copy any other cygwin dlls to > > my application? > > > > Thanks in advance. > > > > - Santhi > > > > > > __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/