Portál AbcLinuxu, 13. května 2025 16:02
#include <rhtvision/tv.h>
, pokus o kompilaci (pomocí g++) vysype toto:
/usr/include/rhtvision/tv.h:690:25: error: compatlayer.h: No such file or directory /usr/include/rhtvision/tv.h:692:25: error: tv/tvconfig.h: No such file or directory /usr/include/rhtvision/tv.h:694:23: error: tv/ttypes.h: No such file or directory /usr/include/rhtvision/tv.h:697:22: error: tv/tkeys.h: No such file or directory /usr/include/rhtvision/tv.h:712:23: error: tv/tvutil.h: No such file or directory /usr/include/rhtvision/tv.h:715:23: error: tv/tvobjs.h: No such file or directory /usr/include/rhtvision/tv.h:719:25: error: tv/tobjstrm.h: No such file or directory /usr/include/rhtvision/tv.h:723:24: error: tv/drawbuf.h: No such file or directory /usr/include/rhtvision/tv.h:727:24: error: tv/objects.h: No such file or directory /usr/include/rhtvision/tv.h:735:23: error: tv/system.h: No such file or directory /usr/include/rhtvision/tv.h:739:23: error: tv/msgbox.h: No such file or directory /usr/include/rhtvision/tv.h:743:25: error: tv/resource.h: No such file or directory /usr/include/rhtvision/tv.h:747:22: error: tv/views.h: No such file or directory /usr/include/rhtvision/tv.h:751:24: error: tv/dialogs.h: No such file or directory /usr/include/rhtvision/tv.h:755:23: error: tv/stddlg.h: No such file or directory /usr/include/rhtvision/tv.h:763:22: error: tv/menus.h: No such file or directory /usr/include/rhtvision/tv.h:779:20: error: tv/app.h: No such file or directoryKompilátor tedy nemůže najít další includované hlavičkové soubory, které ale podle mě jsou tam, kde být mají:
root@stanice:/usr/include/rhtvision# ls cl compatlayer.h tv tv.h root@stanice:/usr/include/rhtvision# ls tv app.h clriteml.h dialog.h filecoll.h frame.h ifpstrm.h menubar.h nscoll.h parttree.h resitem.h statsdef.h strncoll.h ttypes.h yes_mss.h applictn.h clrselct.h dialogs.h filedlg.h gkey.h indicato.h menubox.h nssorcol.h point.h resource.h statsitm.h sttctext.h tvconfig.h backgrnd.h cluster.h dircoll.h filelist.h group.h inputln.h menu.h object.h preadobj.h screen.h statslin.h submenu.h tvedit.h button.h cmdset.h direntr.h fileview.h helpbase.h intl.h menuitem.h objects.h program.h scrlbar.h stddlg.h system.h tvobjs.h calc.h codepage.h dirlibo.h filinfpn.h help.h iopstrm.h menus.h ofpstrm.h pstream.h scroller.h streambl.h terminal.h tvutil.h clrdisp.h collectn.h drawbuf.h filinpln.h history.h ipstream.h menuview.h opstream.h pwritobj.h searchrc.h strilist.h textdev.h validate.h clrdlg.h colorsel.h drivers.h findrepl.h histvwer.h label.h mnoselct.h osclipboard.h radiobtn.h sitem.h strinrec.h textview.h video.h clrgroup.h configfile.h editors.h fontcoll.h histwind.h linux msgbox.h otstream.h rect.h sortcoll.h strlistm.h tkeyext.h view.h clrgrpli.h configtv.h event.h fpbase.h chdirdlg.h listbox.h nointl.h palette.h rescoll.h sortlibo.h strmblcl.h tkeys.h views.h clritem.h desktop.h eventqu.h fpstream.h checkbox.h lstviewr.h no_mss.h parmtext.h resfile.h ssc_streams.h strmblty.h tobjstrm.h window.hCo dělám blbě a jak zařídit, aby kompilátor hlavičkové soubory našel? Nějak teď nevidím žádnou chybu.
tv.h
se požadují hlavičky pomocí příkazu preprocesoru #include <tv/něco.h>
, a bude třeba tak mít v cestě pro hlavičkové soubory adresář rhtvision
, což zajistí parametr překladače -I/usr/include/rhtvision
.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.