kjacob@ALUDRA.USC.EDU (Karl Jacob) (05/07/90)
Please add me to your mailing list I am just beginning in the NeWS enviroment I have been working with X for about 2 years. I have experimented with the examples and creating windows etc. Recently, I received the docs for tnt (the NeWS toolkit) and have been trying to compile my first tnt app. However, when I try to compile I get the following error cc -o test main.o /X/openwin/lib/libcps.a /X/openwin/lib/libwire.a -g -I/X/openwin/include ld: Undefined symbol _pprintf _PostScript _ps_checkfor _ps_skip _psio_close _ps_currenttag _ps_open_server _pscanf _psio_flush _PostScriptInput _ps_lookingat I think I am linking the correct libraries any ideas any response would be appreciated. Karl Jacob kjacob@usc.edu
bice@hbo.UUCP (Brent A. Bice) (05/08/90)
Well, in response to the linking errors, it looks like you're not linking in the NeWS library. We generally have commands in our Makefile like: cc -c $(CFLAGS) -I$$NEWSHOME/include $(PROGRAM).c cc -o $(PROGRAM) $(CFLAGS) $(PROGRAM).o $$NEWSHOME/lib/libcps.a -lm The NEWSHOME is our environment variable for NeWS 1.1. Under NeWS2.0 (Open Look) you would probably use OPENWINHOME instead... Hope this helps.. Brent Bice Applied Computing Systems 2075 Trinity Drive Suite Lower Level Los Alamos, NM 87544 (505) 662-3309 bice@atlantis.ees.anl.gov