Mail Archives: djgpp/1998/07/11/02:04:11
Hello,
I instaled the files needed for use DJGPP with C++, I downloaded the
binaries, I copied the files into the DJGPP directory. I understood that I
don't have to do something else to install the package, in the readme file
says, install like other DJGPP packages (?).
But I am trying with this little program,
#include <strclass.h>
void main ( void )
{
String test = String ( "cadena" );
}
I got this error:
test.cc: undefined reference to 'String::String(char const *)'
test.cc: undefined reference to 'String::~String(void)'
test.cc: undefined reference to 'String::~String(void)'
I am a beginner with DJGPP so I compile with "gcc test.cc -o test.exe", also
I used RHIDE with the same end.
I dont know very well how to use ( and which of them use ) libraries in the
command line but I used -l with all libraries that I found in DJGPP/lib and
it didn't work.
Can someone help me ?
I can't program C++ !!!
I get many "internal errors" and when I compile some programs I get errors
that dump things in the screen, I recompile and works.
thanks for your help, .... and your patience.
jorge ivan meza martinez
http://members.xoom.com/THP
jimeza AT usa DOT net
DJDIR=%:/>DJGPP%
RHIDE_TYPED_LIBS_DJGPP.cc=stdcxx
+USER=dosuser
+TMPDIR=%DJDIR%/tmp
+EMU387=%DJDIR%/bin/emu387.dxe
+GRXFONT=%DJDIR%/contrib/grx23/fonts
+LFN=y
[cpp]
CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/include;%
DJDIR%/contrib/grx23/include;%DJDIR%/contrib/wham/include
C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/contrib/grx23/incl
ude
OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang
/objc
OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc
[gcc]
COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin
LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;%DJDIR%/contrib/grx23/lib;%DJDIR%/
contrib/wham/lib
- Raw text -