delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/06/02/21:58:01

Date: Wed, 2 Jun 93 21:27:12 -0400
From: Xiaojun Zhu <xjzhu AT math DOT uwaterloo DOT ca>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: problems with djgpp1.10

Hi, there:

Is this just my problem? (I never had this problem before with djgpp1.09)

When I try to compile the following very simple program, the compiler
generates the following message:(command line: gcc -x c++ test.c)

Script V1.1 session started Wed Jun 02 21:02:39 1993
d:/tmp/ccb00076(.text+f): undefined reference to `clrscr'
d:/tmp/ccb00076(.text+18): undefined reference to `gotoxy'
d:/tmp/ccb00076(.text+20): undefined reference to `endl(ostream &)'
d:/tmp/ccb00076(.text+2a): undefined reference to `cout'
d:/tmp/ccb00076(.text+2f): undefined reference to `operator<<(ostream &, const char *)'
d:/tmp/ccb00076(.text+3a): undefined reference to `operator<<(ostream &, ostream &(*)(ostream &))'
Script completed Wed Jun 02 21:03:42 1993

------------test.c-------------------------------

#include <gppconio.h> 			/* for gotoxy(int, int) */
#include <iostream.h>
int main(void)
{
   clrscr();
   gotoxy(10, 10);
   cout<<"hello"<<endl;
   return 0;
}

- Raw text -


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