delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/18/13:45:45

From: kblix AT idont DOT want DOT your DOT spam (Kim Robert Blix)
Newsgroups: comp.os.msdos.djgpp
Subject: c++ include file problems
Date: Sun, 18 Jan 1998 18:32:56 GMT
Organization: Tele2 Norway
Lines: 47
Message-ID: <34c24a49.1579093@news1.c2i.net>
NNTP-Posting-Host: 193.216.218.18
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Im having a problem I cant find in any FAQ.

I have just installed djgpp, and everything seemed to work fine until
i tried to compile a c++ program. It seems to me like the compiler
cant find the c++ include files. I have attached a log of what
happends here, I just want to mention that I have not edited
djgpp.env. Any and all help is appreciated.

____log____

e:\djgpp\code>set djgpp
E:/DJGPP/DJGPP.ENV

e:\djgpp\code>type hello.cpp
/* hello world */

#include <iostream.h>

void main(void)
{
        cout << "Hello World";
} /* main */

e:\djgpp\code>gcc hello.cpp
e:/djgpp/tmp\ccdaaaaa(.text+0x1a):hello.cc: undefined reference to
`cout'
e:/djgpp/tmp\ccdaaaaa(.text+0x1f):hello.cc: undefined reference to
`ostream::ope
rator<<(char const *)'

e:\djgpp\code>dir ..\lang\cxx\iostream.h

 Volume in drive E is DRIVE_E        Serial number is 2C36:16D6
 Directory of  e:\djgpp\lang\cxx\iostream.h

iostream.h       9191  23.01.96  21:38
         9 191 bytes in 1 file and 0 dirs    16 384 bytes allocated
   281 608 192 bytes free

e:\djgpp\code>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Kim Robert Blix  ( kblix AT c2i DOT net )
  
 "How do you shoot the devil in the back?"
 "What if you miss?" -Verbal Kint
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

- Raw text -


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