thx! I can compile and link it now ;) > > On 2004-01-12 at 04:20:51 [+0100], Jan Van Hoye wrote: > > Hi! > > > > I am busy with the 'tput' command line application. And It seems I > > can > > compile it in the OpenBeOs tree. But there are some problems when > > linking. These are the errors I get when I want to link my 'tput' > > application. > > > > ...updating 1 target(s)... > > Link ../../../distro/x86.R1/beos/bin/tput > > ../../../objects/x86.R1/apps/bin/tput.o: In function `main': > > ../../../objects/x86.R1/apps/bin/tput.o(.text+0x153): undefined > > reference to `tgetent' > > ../../../objects/x86.R1/apps/bin/tput.o(.text+0x2c2): undefined > [...] > > > > gcc -Xlinker -soname=_APP_ -o "../../../distro/x86.R1/ > > beos/ > > bin/tput" "../../../objects/x86.R1/apps/bin/tput.o" ; > > > > ...failed Link ../../../distro/x86.R1/beos/bin/tput ... > > ...failed updating 1 target(s)... > > > > I know these functions can be found in the termcap lib. But can > > somebody tell me how it comes that my application fails to link? > > Remember I am still a newbe in these things, but I'm learning ;) > > Apparently you just don't link against libtermcap. If you're using > the > BinCommand rule to build it, add `termcap' as third parameter: > > BinCommand tput : tput.c : termcap ; > > With StdBinCommands it should read: > > StdBinCommands tput.c : termcap ; > > CU, Ingo > > >