From: akwong AT ee DOT ualberta DOT ca (Mandr) Newsgroups: comp.os.msdos.djgpp Subject: Re: link error in RSXNTDJ Date: 11 Sep 1998 23:50:03 GMT Organization: University of Alberta Electrical Engineering Department Lines: 45 Message-ID: <6tccvb$j0m$2@pulp.ucs.ualberta.ca> References: <3 DOT 0 DOT 5 DOT 32 DOT 19980830105853 DOT 007a9330 AT 200 DOT 252 DOT 238 DOT 1> NNTP-Posting-Host: nyquist.ee.ualberta.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Thiago F.G. Albuquerque (thiagofga AT ambr DOT com DOT br) wrote: > Hi, > I tried to compile the little 'Hello World' program that came in RSXNTDJ's > help file and got this: > Error: c:/djgpp/bin/ld.exe: cannot open -lc_app: No such file or directory > (ENOENT) > I found this library (Libc_app.a) in directory RSXNTDJ\Lib\Mt, but this > directory wasn't included in the path in the specs file (which reads like > this): > %{Zwin32: -Lc:/djgpp/rsxntdj/lib/all} > So I moved all the files in this directory to RSXNTDJ\Lib\All and managed > to compile the code. Then I went to move the libraries in the St directory > (as it wasn't in the path either), just to discover that the libraries in > this directory had the same names as the ones in Mt, so I can't make them > coexist with the others in the same directory. Can anyone tell me what all > this stuff means? What is the difference between the files in Mt and in the > St directories? > And I feel I must be doing something dummy here. The author of RSX must > have had good reasons to make things the way he did. I shouldn't be moving > files around. Can anybody help? > Thanks, > Thiago the mt directory is for multi-thread programs, and st directory is for single-thread. I changed the *link: line in the specs file as follows: *link: %{Zwin32: -Lc:/djgpp/rsxntdj/lib/all -Lc:/djgpp/rsxntdj/lib/{%Zmt:mt}{%!Zmt:st}} so that it selects the corresponding directory base on the -Zmt option. Mandr -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ____ Albert Kwong - Computer Engineering - U of Alberta Mountain-| \ email - akwong AT ee DOT ualberta DOT ca | )-Mandr phone - (Edmonton) 403-437-4167 (HK) 852-23622744 River-|____ / www - http://www.ee.ualberta.ca/~akwong -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=