nanogui: Thread: problem with flnx and microwindows


[<<] [<] Page 1 of 1 [>] [>>]
Subject: problem with flnx and microwindows
From: "shiva" ####@####.####
Date: 15 Apr 2008 10:57:10 -0000
Message-Id: <50709.203.200.233.130.1208257581.squirrel@mail.serc.iisc.ernet.in>

Dear sir,
I am using flnx 0.18.
I installed microwindows-0.90 in /home/microwindows-0.90 directory.
I installed flnx 0.18 in /home.
#./configure --with-microwin=/home/microwindows-0.90/src
#make clean;make
It compiled successfully.
When I ran demo.sh It is running.But when I ran files of "test" files of
flnx. It is giving error.

e.g for hello.cxx file error is :-

/tmp/ccwCezmS.o: In function `main':
hello.cxx.text+0x43): undefined reference to `Fl_Window::Fl_Window(int,
int, char const*)'
hello.cxx.text+0xe5): undefined reference to `define_FL_SHADOW_LABEL()'
hello.cxx.text+0x11d): undefined reference to `Fl_Window::show(int, char**)'
hello.cxx.text+0x122): undefined reference to `Fl::run()'
/tmp/ccwCezmS.o: In function `Fl_Group::end()':
hello.cxx.text._ZN8Fl_Group3endEv[Fl_Group::end()]+0x12): undefined
reference to `Fl_Group::current_'
/tmp/ccwCezmS.o: In function `Fl_Box::Fl_Box(Fl_Boxtype, int, int, int,
int, char const*)':
hello.cxx.text._ZN6Fl_BoxC1E10Fl_BoxtypeiiiiPKc[Fl_Box::Fl_Box(Fl_Boxtype,
int, int, int, int, char const*)]+0x30): undefined reference to
`Fl_Widget::Fl_Widget(int, int, int, int, char const*)'
hello.cxx.text._ZN6Fl_BoxC1E10Fl_BoxtypeiiiiPKc[Fl_Box::Fl_Box(Fl_Boxtype,
int, int, int, int, char const*)]+0x35): undefined reference to `vtable
for Fl_Box'
collect2: ld returned 1 exit status

My system configuration is :-
fedora 8.90(werewolf)
kernel 2.6.23/-42.fc8 on i686
gcc :-4.1.2

I solved this problem by compiling it through
:-
#g++  hello.cxx -lfltk -lnano-X -lm -o hel
It creates hel(binary file.)but when I am running it ./hel after invoking
nano-X and nanowm server,it is not running .....not going to any where
....
Thanking you
shiva


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Subject: Re: [nanogui] problem with flnx and microwindows
From: "Greg Haerr" ####@####.####
Date: 15 Apr 2008 21:51:57 -0000
Message-Id: <2be701c89f42$d9a97b00$0300a8c0@RDP>

: I solved this problem by compiling it through
::-
: #g++  hello.cxx -lfltk -lnano-X -lm -o hel
: It creates hel(binary file.)but when I am running it ./hel after invoking
: nano-X and nanowm server,it is not running .....not going to any where

FLNX was created a LONG time ago and is only known tested
with an old compiler, v2.96 IIRC.

I would suggest using the latest FLTK v1.1.x and compiling with
CVS NXLIB and CVS microwindows.  That works, at least
with the newer compilers.

Regards,

Greg
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.