Mail Archives: djgpp/1996/01/08/22:14:18
>We are currently making a relatively big program in C++. We wrote it in
>Turbo C++. We arranged it so it could be compiled within GCC (dj's) (ie
>arranging the random() pow(long, long) and itoa() [wich we had to redo
>;)] but it seems that GCC doesn't support it. It compiles well, without
>warnings but the executable doesn't work (its NOT a renamed COFF file ;))
Have you tried giving GCC the -Wall flag? That may help you find the problem;
it is likelier that your program has a bug which doesn't show up under TC than
that GCC isn't working properly. You might also try adding -g to your flags
and then running the program under a debugger (Caveats: you can't pass it
arguments under a debugger; also, it will think that foo.cpp is really foo.cc).
If none of that helps, please submit the smallest piece of code you can that
duplicates the problem, and provide compilation and system details (all to the
list/newsgroup).
>Segment violation in pointer 0x00000000 at d8:de81
This indicates a NULL pointer dereference. Check your sources.
-- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) | httyp!
"That's right," he said. "We're philosophers. We think, therefore we am."
-- Terry Pratchett, _Small Gods_ | Geek Code 3.1 [for explanation, finger
hayden AT mankato DOT msus DOT edu]: GCS/M/S/C d- s: a18 C++(+++)>++++ UL++>++++ P++
L++>+++++ E- W(-) N++(+) o+ K- w--- O M@ V-(--) PS++(+++) PE- Y(+) PGP(+) t(+)
!5 X-- R(-) tv-@ b++(+++) DI+ !D-- G++(+++) e->+++++(*) h!>+ r-(--)>+++ y?
- Raw text -