www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/11/19:16:36

From: Charles Terry <cterry AT plinet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: More RHIDE trouble...
Date: Sat, 11 Apr 1998 15:45:05 -0700
Organization: All USENET -- http://www.Supernews.com
Lines: 32
Message-ID: <352FF271.422D@plinet.com>
References: <352fb0d3 DOT 5318573 AT news DOT eznet DOT net>
NNTP-Posting-Host: 25987 AT 207 DOT 174 DOT 3 DOT 141
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ryan Twitchell wrote:
> 
>         Thanx to everyone who helped me with my last problem. But now
> I've got more problems. When ever I try to compile something now, I
> get the message :
>         "Bad command or file name" (like in DOS)
> but the program still compiles. Also, if I try to include my own
> header file in a project (in the project window, a source file, or
> both), the compiler gives me an error saying: "Multiple definition of
> main"
>         I hope an IDE is worth all this trouble cuz I've got an
> enormous headache!
>         Thanx again,
>                 Ryan Twitchell

The IDE is worth the trouble, any platform has its learning curve
and if you really want a headache try the alternative "EMACS".

Anyway we need to know when you get the bad command or file name?
use the -v option in the compiler options.
Also you should never put an include file in the project window,
an include file is used to set definitions and macros that effectively
become a part of the file they are included with, whereas if they
are in the project window they are treated as code to be compiled
independently.  Also the dj compiler decides what to to with a
file based on its extention, I'm not sure what it would try to do
compiling an *.h file.
When you get the main redefinition message doesn't it say where the
first definition was?

Charles Terry

- Raw text -


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