Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!thyme!kaleb From: kaleb@thyme.jpl.nasa.gov (Kaleb Keithley) Newsgroups: comp.windows.x.motif Subject: Re: Problems compiling FileSelectionBox Widget Message-ID: <1991May21.151752.29000@thyme.jpl.nasa.gov> Date: 21 May 91 15:17:52 GMT References: <1991May17.144227.4363@fwhnm02.fwrdc.rtsg.mot.com> <1991May21.040742.4569@gibdo.engr.washington.edu> Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 29 In article slh@gibdo.engr.washington.edu writes: >In article tmerklin@fwhnm02.fwrdc.rtsg.mot.com.UUCP () writes: >| >|I'm attempting to add a File selection box to an application, but >|can't get past compiling it without the following error: >| >|ld: Undefined external - >|_regcmp >|_regex >|ld: output file still contains undefined symbols >|ld: (Warning) did not generate an output file >| > Semi-obviously you're missing a library; > you don't give the compile/link command, but I believe > you are missing -lPW on it. Perhaps it's not as semi-obvious as you think. All the world's not SysV. If you're compiling on a Sun, for instance, you need to re-read the Release Notes and Porting Guide and pay attention in the section about Sun. Specifically, on Sun, you need to add -DNO_REGEX to the list of defines. Furthermore, if you're on Sun SPARC, there are some other #defines that you will need also. Sun is just one example; I'm will to bet that there are other systems that don't have regex and regcmp. -- Kaleb Keithley kaleb@thyme.jpl.nasa.gov Meep Meep Roadrunner Veep veep Quayle