Date: Tue, 11 Sep 2001 14:35:08 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: "Orlando P. Hevia" cc: djgpp AT delorie DOT com Subject: Re: link error with gpc In-Reply-To: <200109111130.f8BBUTV25979@postino5.prima.com.ar> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 11 Sep 2001, Orlando P. Hevia wrote: > g:/usr/lib/gcc- > lib/djgpp/2.953/libgpc.a(rts.o)(.text+0x19c4):rts.c: > undefined reference to `tcsetpgrp' > g:/usr/lib/gcc- > lib/djgpp/2.953/libgpc.a(rts.o)(.text+0x19f0):rts.c: > undefined reference to `tcgetpgrp' > collect2: ld returned 1 exit status > make.exe: *** [tpbigp.exe] Error 1 These functions are in libc.a, so I'm guessing that the order of the libraries on the link command line was wrong. Link with -v and look at the command used to invoke the linker; if that doesn't give a clue, post everything the compiler printed here.