Mail Archives: djgpp/1998/07/14/15:33:54
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 -