problem testing infinint value
Johnathan Burchill <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Denis,
This code has worked up until now.
QString plural("s ");
libdar::statistics st=op_test(theArchive, selection, subtree, verbose);
if (st.errored == libdar::infinint(1)) plural = " ";
It compiles fine (dar-2.1.3), but I get the following linker error:
/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor
-Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith
-Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2
-fno-exceptions -fno-check-new -fexceptions -DLIBDAR_MODE=64 -o kdar
-R /opt/kde3.2.3/lib -R /usr/lib/qt-3.2.3/lib -R /usr/X11R6/lib
-L/usr/X11R6/lib -L/usr/lib/qt-3.2.3/lib -L/opt/kde3.2.3/lib kdardialog.o
kdarconfiguredialog.o kdarcreatedialog.o kdarfilefilterdialog.o
kdarcompressionfilterdialog.o kdardirectoryfilterdialog.o
kdarextractdialog.o kdarcreatearchivewizard.o newarchivestoragedirdialog.o
getUserResponseThread.o isolateArchiveThread.o testArchiveThread.o
kdarview.o kdar.o main.o kdariface_skel.o kdarConfigureDlg.o kdardlg.o
kdarcreatedlg.o kdarcreatewizarddlg.o kdardirectoryfilterdlg.o
kdarcompressionfilterdlg.o kdarfilefilterdlg.o extractdlg.o
newarchivestoragedirdlg.o -lkio -lkdeprint -ldar64
*testArchiveThread.o(.text+0x2dd): In function `testArchiveThread::run()':
*: undefined reference to `void libdar::limitint<unsigned long
long>::limitint_from<long>(long)'
*collect2: ld returned 1 exit status
*Making all in doc
*gmake[2]: *** [kdar] Error 1
*gmake[2]: Target `all' not remade because of errors.
*
The only change was to put the code into a separate .cpp file, which
compiles okay. When the code was inside my kdar.cpp file, there was no
problem during linkage.
The problem line is
if (st.errored == libdar::infinint(1)) plural = " ";
which can be verified by commenting it out.
Have you any experience with this problem?
Thanks,
JB
--
Johnathan K. Burchill, Ph.D.
[email protected]
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQBA2halrXMSOtiWrO4RAupeAJ47E4eecZOHTYVZbuHAX0XTKs1rdgCgmjK6 tXt86o+gWfV2xgKkr3aYXAs= =Yoqv -----END PGP SIGNATURE-----