delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-Id: | <4693AB33.73DE.0052.0@bju.edu> |
X-Mailer: | Novell GroupWise Internet Agent 7.0.2 |
Date: | Tue, 10 Jul 2007 15:52:20 -0400 |
From: | "Kirk Russell" <Krussell AT bju DOT edu> |
To: | <cygwin AT cygwin DOT com> |
Subject: | fopens fails to open binary files on Vista |
Mime-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id l6AJqh9l028040 |
Hi, I am running Windows Vista and I have written a program on cygwin that opens a binary file using the fopen call with a mode of "rb". At run time I receive the following error message: Invalid Parameter passed to C runtime function. If I were to remove the "b" in "rb", the library call is successful. Is there a different way to open binary files when running an executable on cygwin, on Vista. I also tried to use the setmode call and it failed as well with the same error. Here is how I am building my executable. I would appreciate any help or information you could give me. gcc -DHAVE_CONFIG_H -I. -I/home/krussell//usr/win32/include -I. -I /usr/include /usr/local/ssl/lib/libcrypto.a -g -O2 -Wall -W -MT secureDisk.o -MD -MP -MF "se cureDisk.Tpo" -o secureDisk -mno-cygwin secureDisk.c /usr/local/ssl/lib/libcrypt o.a ; \ Kirk Kirk Russell IT BJU 864 242 5100 x3884 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |