Message-Id: <199810211445.QAA41572@ieva06.lanet.lv> From: "Andris Pavenis" To: djgpp AT delorie DOT com Date: Wed, 21 Oct 1998 16:51:15 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Can someone help me with the Turbo Vision port which comes with RHIDE ? In-reply-to: X-mailer: Pegasus Mail for Win32 (v3.01b) Reply-To: djgpp AT delorie DOT com Date sent: Wed, 21 Oct 1998 14:24:21 +0200 (MET DST) From: Olivier Perron Subject: Can someone help me with the Turbo Vision port which comes with RHIDE ? > I've posted this message last fryday, but as nobody answered me, I'm > posting it again. > > I've build libtv.a with nointl.h and from the diffs wich come with > the sources of rhide-1.46 > > Now, if I try to build a simple example which uses TVision, I have the > following error at link time: > > gxx -o listbox.exe listbox.o -L/djgpp/contrib/rhide-1.46/tvision -ltv > listbox.o: In function `main': > listbox.cc:5: undefined reference to `TApplication type_info node' > listbox.o: In function `TApp type_info function': > listbox.cc(.text+0xc63): undefined reference to `TApplication type_info function' > > As it is the very first time I use the TVision lib, as I'm not a C++ > guru, I really don't know what the problem is. Perhaps You used project files from RHIDE-1.4.6 source distribution archive. Then all sources from libtv.a is built with compiler options '-fno-rtti -fno-exceptions'. So to use TVision in Your applications either rebuild libtv.a without these options or use same options for Your sources. I think Robert turned off exceptions and RTTI to have smaller executables, as these features is not used in RHIDE. Perhaps it may be sufficient to remove -fno-rtti from gcc options when building libtv.a Try: gxx -fno-rtti -o listbox.exe listbox.cc -L/djgpp/contrib/rhide-1.46/tvision -ltv > > Is it a problem with the TVision port which comes with Rhide or is it my > sample program (listbox.cc from > ftp://ftp.borland.com/pub/borlandcpp/devsupport/archive/turbovision/listbox.zip) > > Any help will be appreciated. > Olivier. > > > >