Reply-To: "Jorge Ivan Meza Martinez" From: "Jorge Ivan Meza Martinez" To: Subject: I have problems with C++ Date: Sat, 11 Jul 1998 00:56:51 -0500 Message-ID: <01bdac90$b6f7c080$LocalHost@default> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Precedence: bulk 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 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