From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,ccc67b4798979b15,start X-Google-Attributes: gid1014db,public X-Google-Thread: 1164f8,ccc67b4798979b15,start X-Google-Attributes: gid1164f8,public From: Christopher Grayce Subject: extra lib member not found by ld when -g used. Date: 1997/07/24 Message-ID: <33D70B8C.BF6FC6C@savetrees.com>#1/1 X-Deja-AN: 258484000 Organization: None Newsgroups: comp.lang.c,comp.sys.dec Hi all: System: Digital Unix 3.2C on AlphaStation 600. Compiler: stock Digital C compiler/loader version 3.11 I am compiling C source and linking against several libraries of my own. The libraries have been compiled with these flags: -O4 -D_FASTMATH -migrate -ansi_alias -inline speed -ifo -tune ev5 -assu me noaccuracy_sensitive -std1 If I compile the program with the same flags, all is well. If I use -g, however (so I can debug it), I get this loader error: ld: Unresolved: _OtsMove *** Exit 1 Stop. and indeed, an "nm" on one of the libraries turns up an entry for _OtsMove. Needless to say none of my programs have that name. My question: what is _OtsMove? Why does the loader find it if I use the optimizing flags and not without? How can I avoid this problem *without* recompiling the libraries? (I don't need to debug 'em, I know they work.) Any help appreciated. Christopher Grayce UCI Department of Chemistry *** Return address bogus to avoid spammail: send replies to cgrayce (at) uci (dot) edu ***