delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/14/15:33:54

Reply-To: "Jorge Ivan Meza Martinez" <jimeza AT usa DOT net>
From: "Jorge Ivan Meza Martinez" <jimeza AT usa DOT net>
To: <djgpp AT delorie DOT com>
Subject: problemitas with C++
Date: Mon, 13 Jul 1998 23:06:30 -0500
Message-ID: <01bdaedc$cb9f6120$LocalHost@default>
MIME-Version: 1.0

Hello to everyone,

I am having problems compiling C++,

I installed all files that the "zip picker" asked me, but when I compile a
program the output says that my classes ( standard classes ) are undefined.

for example, I tried something like

#include <strclass.h>
int main ( void )
    {
    String cadenita = String ( "cadenota" );
    }

I compile with "gcc file.cc -o file.exe", the output says that String
constructors and destructor are undefined.  I don't include -lgpp because I
understand that GCC include C++ classes itself.

When I try this under RHIDE, the compilation process appears to be done, but
not the linker stage, I think that the problem is in there.

Can somebody help me ?
Can somebody send me a little program like this that uses strclass and tell
me how compile it succesfully ?
What am I doing wrong with my compilation ?

I understand that the code defined by the header is in the .a files into the
/lib directory, isn't it ?

thank you for the help,

jorge ivan meza martinez
http://members.xoom.com/THP
jimeza AT usa DOT net

- Raw text -


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