Mail Archives: djgpp/1998/04/11/19:16:36
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 -