www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/05/11:21:40

From: "Morpheus" <d_a_hall AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: compiling C++
Date: Fri, 5 Nov 1999 08:47:15 -0600
Organization: University of North Texas
Lines: 34
Message-ID: <7vuqnq$9nq@hermes.acs.unt.edu>
References: <7vsnag$jhc AT hermes DOT acs DOT unt DOT edu> <7vugut$7d9 AT hermes DOT acs DOT unt DOT edu> <3822ce3d DOT 0 AT news DOT uni-bielefeld DOT de>
NNTP-Posting-Host: dfw-premium-49.dialup.unt.edu
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019