Mail Archives: djgpp/1999/11/05/11:21:40
> You split your sources into several files, which is a good thing. But why
did you put the implementation of "IniFile" in the same file as main()?
(Just a question should have nothing to do with your problem.)
Well, I'm a java programmer normally, but I'm doing some c++ in Linux right
now for a project. And I can't get my Linux box up and running (defective
CPU), so for the time being, I need to use this on Windows. Anyway, as is
the normal case with java (and the C++ I've seen), you put a 'main' in the
same .cpp file as a class you want to test. It's not the 'main' for the
whole project, but a test-main of sorts to test various things in the
IniFile class. It's short right now, but I test various things in it as I go
along.
> Now, maybe I am blind or something. But I couldn't see any complaints or
errors messages from gcc here. Looks like everything compiled and linked
just fine.
Hmm. Someone just emailed me and said it was full of syntax and other errors
and he can't even get it to compile. Can you think of anything that might be
wrong with the way I set up djgpp when I installed? (This is the first
program I've run.) By the way, I tried to compile a class written by my
instructor that compiles and links fine in Linux, and it gives me the same
error. Is it possible that I need to write a Makefile to display the
dependencies and such? Give me any ideas you have, please.
Thanks.
Morpheus.
--
Email: hall AT cs DOT unt DOT edu
Web: http://people.unt.edu/~dahall
"You'll tell yourself, 'I don't believe in any of this fake crap!'"
- Raw text -