www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/19/12:55:23

From: "George C. Moschovitis" <gmoscho AT alexander DOT cc DOT ece DOT ntua DOT gr>
Subject: Q
To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)
Date: Mon, 19 Jun 1995 15:37:48 +0300 (EET DST)

Hi there...

 I tried to compile a C++ version of the hello.c progie : 
 
#include <iostream.h>

main ()
{
  cout << "\nHello World!\n";
}

using the following command :

 gcc -s hello.cc

and i got the following error messages :

iostream.cc (...) : undefined reference to '_ctype_'
stdstrbufs.cc (...) : undefined reference '_iob_'
iovfscanf.cc (...) : undefined reference '_ctype_'

any idea what I am doing wrong ?
btw i use the 950612 snapshot of V2.
(i unzipped it over v1.12m4... is this the correct way to install it ?)




tmL-

ps: 
    btw i tried the -s switch of the linker (thnx to all the people that told
    me about this). The executable got quite smaller (~46kb) but there are still
    some strings included like '.text' filenames etc etc. any way to strip those
    too ?

ps2:
    I read in the docs that GCC DOES generally support instruction scheduling.
    is this supported for the i386 processor ?
      

- Raw text -


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