[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++ and -lcurses..



Hi,
It seems to be neccessary to link c++ programms with curses or ocurses.
This i get when compiling pstoedit.2.50.tar.gz on OpenBSD-i386 (current):

g++ -Wall -o pstoedit  -DDEFAULTGS=gs cmdmain.o pstoedit.o lexyy.o
drvbase.o drvlwo.o  drvrib.o  drvrpl.o  drvmif.o  drvdxf.o  drvjava.o
drvpdf.o drvcgm.o cdlib.o drvsampl.o drvtgif.o  drvfig.o  drvgnplt.o -lm 
pstoedit.o: warning: tempnam() possibly used unsafely; consider using
mkstemp()
drvmif.o: warning: tempnam() possibly used unsafely; consider using
mkstemp()
drvpdf.o: warning: tempnam() possibly used unsafely; consider using
mkstemp()
drvtgif.o: warning: tempnam() possibly used unsafely; consider using
mkstemp()
drvfig.o: warning: tempnam() possibly used unsafely; consider using
mkstemp()
bash$ ./pstoedit
/usr/libexec/ld.so: Undefined symbol "_COLS" in pstoedit:/usr/lib/libg++.so.27.1
bash$ g++ -Wall -o pstoedit  -DDEFAULTGS=gs cmdmain.o pstoedit.o lexyy.o
drvbase.o drvlwo.o  drvrib.o  drvrpl.o  drvmif.o  drvdxf.o  drvjava.o
drvpdf.o drvcgm.o cdlib.o drvsampl.o drvtgif.o  drvfig.o  drvgnplt.o
-lcurses -lm
pstoedit.o: warning: tempnam() possibly used unsafely; consider using
mkstemp()
drvmif.o: warning: tempnam() possibly used unsafely; consider using
mkstemp()
drvpdf.o: warning: tempnam() possibly used unsafely; consider using
mkstemp()
drvtgif.o: warning: tempnam() possibly used unsafely; consider using
mkstemp()
drvfig.o: warning: tempnam() possibly used unsafely; consider using
mkstemp()
bash$ ./pstoedit
pstoedit: version 2.50 : Copyright (C) 1993,1994,1995,1996,1997 Wolfgang
Glunz
No backend specified
usage: pstoedit [-help] [-dt] [-merge] [-s nn] [-dis] [-nomaptoisolatin1]
[-rn1xn2] [-nq] [-flat nn] [-bo] -f format [infile [outfile]]

Is it now a convention to always link curses to c++ programms?
ciao
Carsten


Visit your host, monkey.org