Mail Archives: djgpp/2001/04/10/02:12:05
On 9 Apr 2001, Yaoting Chiu wrote:
> Hi all:
>
> While I port RHIDE to FreeBSD , I met some problem and need help.
>
> ( However , it seems hard to even compile under linux platform, too.
> Can any body tell me which linux distribution I can compile with no
> error ? )
>
> gmake[2]: Leaving directory `/usr/home/sothat/rhide-1.4.7/libide/stream'
> gcc -I/usr/home/sothat/rhide-1.4.7/libide/include -I/usr/home/sothat/rhide-1.4.7/libtvuti/include -I/usr/home/sothat/rhide-1.4.7/librhuti -I/usr/home/sothat/rhide-1.4.7/tvision/include -I/usr/home/sothat/rhide-1.4.7/libset/include -I/usr/home/sothat/rhide-1.4.7/libset/settvuti/include -I/usr/local/include -g -O2 -Wall -W -DRHIDE -fno-exceptions -fno-rtti -funsigned-char -c tidefile.cc -o tidefile.o
> tidefile.cc: In method `void TIDEFileEditor::setFormatLine()':
> tidefile.cc:71: taking the address of a non-static member function
> tidefile.cc:71: to form a pointer to member function, say `&TIDEFileEditor::formatLine'
>
> Here, in tidefile.cc:71 , I can't overcome this compile error . Include
> define the TIDEFileEditor::formatLine as a static function but in vain because
> it induce another problem.
> Though , this error will not occur while compile in a remote linux I can access.
It depends on compiler version You're using. Perhaps Linux system You
tried have old egcs-1.1.2 or something similar, but for FreeBSD You used
gcc-2.95.2.
Also error message explains what You should change to avoid it ...
Other thing: rhide-1.4.7 is old. I suggest to try latest update (1.4.7.8)
from
http://www.lanet.lv/~pavenis/rhide.html
>
> CONFORMING TO
> BSD 4.2
> Under BSD 4.3, this call is obsoleted by gettimeofday(2).
>
> Else , FreeBSD need libintl.h which is the header from gettext.
> While it was install in /usr/local/include, I should patch some *.mak
> to locate libintl.h.
>
> Thanks for your help.
>
> Regards, sothat.
>
> The patch i used on my freebsd box.
>
> --- ./libide/stream/stream.mak.orig Mon Apr 9 22:32:22 2001
> +++ ./libide/stream/stream.mak Mon Apr 9 22:32:44 2001
> @@ -256,7 +256,7 @@
> -funsigned-char
> INCLUDE_DIRS=$(RHIDESRC)/libide/include $(RHIDESRC)/libtvuti/include\
> $(RHIDESRC)/librhuti $(RHIDESRC)/tvision/include\
> - $(RHIDESRC)/libset/include $(RHIDESRC)/libset/settvuti/include
> + $(RHIDESRC)/libset/include $(RHIDESRC)/libset/settvuti/include /usr/local/include
I suggest trying to begin from 1.4.7.8. You'll have to download TVision and SETEDIT
separatelly.
Andris
- Raw text -