includes??

Can anyone tell me why my program comes up with a dialog box asking me to give it the path for fopen.c. I wasn't aware this file existed,or that if it ever did, the function it provided by would not be provided in stdio.h. I havent changed my compiler/linker options, and this message box just keeps coming up now when I'm ytrying to open a file. At first it wanted to know where gets.c was!

My curret included files are: -

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
TarngeAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
lbertaccoConnect With a Mentor Commented:
The debugger is trying to show you the fopen source code but you don't have fopen.c. This is normal, you can assume fopen works fine and then just step-over fopen rather than step-in, or switch to assembly mode.
0
 
lbertaccoCommented:
Maybe you are trying to debug the program or used debug compiler option. What compiler are you using and udner which OS?
0
 
ericmhhuiCommented:
Have you been renaming any of your source files?
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
TarngeAuthor Commented:
Ok, after a bit more testing (and playing around!) it only comes up with the file request when I'm debugging. When running, earlier on it kept crashing, but i started a new project and readded all the files and it doesn't crashedm but I still can't debug past the call to fopen() because it request the fopen.c file again.

I'm using Windows XP SP1, Visual Studio 97 (ie. MS Visual C++ 5.0), and I've started the project as a Win32 Console Application.

I havent renamed any source files at all.


( Just a thought , but: does anyone know if there are any limits on using original C procedures in a .cpp extension file, I know u can't do it the other way around - I always thought C++ was fully back compatible with c code!)
0
 
TarngeAuthor Commented:
You're right lbertacco, I forgot I was using to step into to get into all of my own routines. Any idea why it would have crashed when running tho?
0
 
lbertaccoCommented:
Probably you are using different buil options, but it's difficult to tell.
0
All Courses

From novice to tech pro — start learning today.