delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/08/12:26:04

Newsgroups: comp.os.msdos.djgpp
From: fredex AT fcshome DOT stoneham DOT ma DOT us (fred smith)
Subject: Re: probably a really stupid question from a newbie
X-Newsreader: TIN [version 1.2 PL2]
Organization: None!
Message-ID: <F89zFF.9C2@fcshome.stoneham.ma.us>
References: <7bva72$klv$1 AT winter DOT news DOT rcn DOT net>
Date: Mon, 8 Mar 1999 12:16:26 GMT
Lines: 28
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

RCN (rprcn AT rcn DOT com) wrote:
: I am trying to compile a C++ program that utilizes 1 source file and 1
: header file.  What is the proper command to compile it using gxx or gcc or
: whatever I should use with DJGPP?

: The program compiles perfectly in UNIX using this command line:
: "g++ -h test.h test.cc -o test.exe"

: When I try compiling it with DJGPP, this error message pops up:
: "Compilation of header file requested"

: gxx doesn't seem to recognize the "-h" option, so how would I compile this
: in DJGPP???

Huh? Does the .cc file have #include "test.h"?? If so just compile it with:
	g++ test.cc -o test.exe

This is the normal way to do it with not only gcc/gxx/g++, but with any
normal Unix compiler. You NEVER mention the headers on the compile
command line.

Fred
--
---- Fred Smith -- fredex AT fcshome DOT stoneham DOT ma DOT us ------------------------ ----
                    Do you not know? Have you not heard? 
    The LORD is the everlasting God, the Creator of the ends of the earth. 
  He will not grow tired or weary, and his understanding no one can fathom.
----------------------------- Isaiah 40:28 (niv) -----------------------------

- Raw text -


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