| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <20020118090426.61348.qmail@web13905.mail.yahoo.com> |
| Date: | Fri, 18 Jan 2002 01:04:26 -0800 (PST) |
| From: | Bandla Srinivas <bandla_srinivas AT yahoo DOT com> |
| Subject: | System API problem |
| To: | cygwin AT cygwin DOT com |
| MIME-Version: | 1.0 |
Hi,
I am using cygwin 1.3.6 to compile the unix sources,
and use those executables on Win NT. I am getting
Strange error when running my application.
I am using system API inside my application to
execute commands. This is Sample Test program
test.cpp:
main()
{
int status=system("diff t1.tct t2.txt");
cout<<staus;
}
I compiled this in cygwin. I got test.exe. When i run
test.exe from msdos prompt, it is printing 127. That
means system api is returning error code as 127 it is
equivalent to (ERROR_PROC_NOT_FOUND).
I copied cygwin1.dll to c:\winnt\system32. system
API has been defined in this cygwin1.dll. when i run
this executable from dosprompt why it is not able to
locate procedure system eventhough cygwin1.dll in
path. Anybody faced such problem. i have tried with
different commands with in the system API. Same error
code 127. What is the problem. can i have any solution
for this problem.
- Bandla
=====
__________________________________________________
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |