public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problems with fopen and strcmp.c
@ 1999-11-09  5:12 tobias_meier
  1999-11-09  6:31 ` Martin Kahlert
  1999-11-30 23:28 ` tobias_meier
  0 siblings, 2 replies; 4+ messages in thread
From: tobias_meier @ 1999-11-09  5:12 UTC (permalink / raw)
  To: help-gcc

Hi,

I am using Suse Linux 6.0.

Compiling following file with XWPE.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>

main()
{
File *in_ptr = NULL;
char *in_file = "myfile";

in_ptr = fopen(in_file,"r");
...

}

I receive, running the compiled file, the error : segmentation fault

Debugging the file with GDB : GDB stopps before fopen and I get the
message " can't find file : ../sysdeps/generic/strcmp.c "

Who knows what to do ?

Thanks

Tobias


Sent via Deja.com http://www.deja.com/
Before you buy.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problems with fopen and strcmp.c
  1999-11-09  5:12 Problems with fopen and strcmp.c tobias_meier
@ 1999-11-09  6:31 ` Martin Kahlert
  1999-11-30 23:28   ` Martin Kahlert
  1999-11-30 23:28 ` tobias_meier
  1 sibling, 1 reply; 4+ messages in thread
From: Martin Kahlert @ 1999-11-09  6:31 UTC (permalink / raw)
  To: help-gcc

In article < 8095v8$qcl$1@nnrp1.deja.com >,
	tobias_meier@my-deja.com writes:
> Hi,
> 
> I am using Suse Linux 6.0.
I use Suse 6.1.

> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <malloc.h>
> 
> main()
> {
> File *in_ptr = NULL;
> char *in_file = "myfile";
> 
> in_ptr = fopen(in_file,"r");
> ...
> 
> }
> 
If i change File into FILE, it runs perfectly (linux, gcc-2.95.2)

Bye,
Martin.

-- 
The early bird gets the worm. If you want something else for       
breakfast, get up later.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problems with fopen and strcmp.c
  1999-11-09  6:31 ` Martin Kahlert
@ 1999-11-30 23:28   ` Martin Kahlert
  0 siblings, 0 replies; 4+ messages in thread
From: Martin Kahlert @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

In article < 8095v8$qcl$1@nnrp1.deja.com >,
	tobias_meier@my-deja.com writes:
> Hi,
> 
> I am using Suse Linux 6.0.
I use Suse 6.1.

> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <malloc.h>
> 
> main()
> {
> File *in_ptr = NULL;
> char *in_file = "myfile";
> 
> in_ptr = fopen(in_file,"r");
> ...
> 
> }
> 
If i change File into FILE, it runs perfectly (linux, gcc-2.95.2)

Bye,
Martin.

-- 
The early bird gets the worm. If you want something else for       
breakfast, get up later.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Problems with fopen and strcmp.c
  1999-11-09  5:12 Problems with fopen and strcmp.c tobias_meier
  1999-11-09  6:31 ` Martin Kahlert
@ 1999-11-30 23:28 ` tobias_meier
  1 sibling, 0 replies; 4+ messages in thread
From: tobias_meier @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

Hi,

I am using Suse Linux 6.0.

Compiling following file with XWPE.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>

main()
{
File *in_ptr = NULL;
char *in_file = "myfile";

in_ptr = fopen(in_file,"r");
...

}

I receive, running the compiled file, the error : segmentation fault

Debugging the file with GDB : GDB stopps before fopen and I get the
message " can't find file : ../sysdeps/generic/strcmp.c "

Who knows what to do ?

Thanks

Tobias


Sent via Deja.com http://www.deja.com/
Before you buy.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-11-30 23:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-09  5:12 Problems with fopen and strcmp.c tobias_meier
1999-11-09  6:31 ` Martin Kahlert
1999-11-30 23:28   ` Martin Kahlert
1999-11-30 23:28 ` tobias_meier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).