Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Alessandro Mirone <alex@greco2.polytechnique.fr>
Subject: problems mixing stdio and stdc++ libraries
Date: Sun, 11 Jan 1998 18:14:29 +0100 (MET)	[thread overview]
Message-ID: <2d25ae8d23ff2d5a5561ebd61bb4839e.axp-list@archive.invalid> (raw)

Hi people,

Under RH5.0  I have problems with c++ programs that
mixes stdio and iostream
a programs like this

#include<stdio.h>
#include<iostream.h>
main()
{
  FILE *f=fopen("pippo","w");
  FILE *f1=fopen("pippo1","r");
  cout << "ciao\n";
  fprintf(f,"ciao\n");
  fscanf(f1,"%c",&c);
  cout << "ciao\n";
  fclose(f);
  fclose(f1);

}

gives me segmentation fault when compiled with stdc++ in RedHat 5.0
I did not find the problem with 4.2.
Any Hints?
Thank you

Alessandro MIRONE
LULI, 91128  Ecole Polytechnique, Palaiseau
alex@greco2.polytechnique.fr
tel: (33) (1) 64468029
Tel cellulaire : 0681643779 

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1998-01-11 17:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-11 17:14 Alessandro Mirone [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-01-11 20:06 problems mixing stdio and stdc++ libraries N8YDAWG
     [not found] <ca1b9583.34b92637@aol.com>
1998-01-12 16:36 ` Joakim Roubert
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox