[metapost] First GUI application linking to MPLib?

Troy Henderson thenders at gmail.com
Sat Aug 11 01:07:43 CEST 2012


When I copy the libmplib.a from the 1.2 branch in SVN to the
first-light directory and type "make", I get

gcc -Wall -g -c guitest.cpp -I /usr/include/qt4
gcc -Wall -g -o guitest guitest.o -L . -l mplib -L /usr/lib/qt4 -l
QtCore -l QtGui -l QtSvg
./libmplib.a(libmplib_a-mp.o): In function `mplib_close_file':
/scratch/metapost/branches/1.2/build/texk/web2c/../../../source/texk/web2c/mplibdir/mp.w:22776:
undefined reference to `kpse_fclose_trace'
./libmplib.a(libmplib_a-mp.o): In function `mp_open_file':
/scratch/metapost/branches/1.2/build/texk/web2c/../../../source/texk/web2c/mplibdir/mp.w:630:
undefined reference to `kpse_fopen_trace'
./libmplib.a(libmplib_a-mp.o): In function `mplib_open_file':
/scratch/metapost/branches/1.2/build/texk/web2c/../../../source/texk/web2c/mplibdir/mp.w:22631:
undefined reference to `kpse_fopen_trace'
./libmplib.a(libmplib_a-mp.o): In function `mp_close_file':
/scratch/metapost/branches/1.2/build/texk/web2c/../../../source/texk/web2c/mplibdir/mp.w:794:
undefined reference to `kpse_fclose_trace'
collect2: ld returned 1 exit status
make: *** [all] Error 1

Troy


More information about the metapost mailing list