GIDForums

Go Back   GIDForums > Computer Programming Forums > FLTK Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 14-Apr-2008, 07:34
shiva_crazy02 shiva_crazy02 is offline
New Member
 
Join Date: Apr 2008
Posts: 12
shiva_crazy02 is on a distinguished road

use of flnx


Dear all,
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 :-

Code:
/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
Thanking all of you
shiva kumar
Last edited by cable_guy_67 : 15-Apr-2008 at 16:40. Reason: Added [CODE] tags
  #2  
Old 15-Apr-2008, 04:46
shiva_crazy02 shiva_crazy02 is offline
New Member
 
Join Date: Apr 2008
Posts: 12
shiva_crazy02 is on a distinguished road
Question

Re: use of flnx


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
  #3  
Old 17-Apr-2008, 02:17
shiva_crazy02 shiva_crazy02 is offline
New Member
 
Join Date: Apr 2008
Posts: 12
shiva_crazy02 is on a distinguished road

Re: use of flnx


Dear all,
It solved the problem little bit ......when I run following command in run.sh with "sh run.sh filename" It works.
g++ -I.. -O2 -Wall -Wno-return-type -DNANO_X -I/home/microwindows-0.90/src/include -DNANOXFOLDER='"/home/microwindows-0.90/src/bin"' -DPDA $1.cxx -L../lib -lfltk -DNANO_X=1 -L/usr/local/lib -L/home/microwindows-0.90/src/lib -lnano-X -lm -o $1
Another problem is I have to change demo.sh(in place of button I have to put filename ) code to run binary file and running it in shell as #./demo.sh
Now It works tell me sir why?
one person suggest me this but this one is also not working:-
> I'm just typing out loud here, but doesn't FLTK require you to add the
> REENTRANT flag to your build command line? Something like:
>
> g++ -D_REENTRANT hello.cxx -lfltk -lnano-X -lm -o hel
>

regards
shiva kumar
 

Recent GIDBlogNon-US citizens serving in the military by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is FLNX???? jaikumar_j FLTK Forum 1 02-Sep-2006 12:08

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 12:43.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.