From: WELLS, R. K. <ROG...@sa...> - 2004-11-30 19:12:35
|
Andrew, Thanks but that does not seem to be the silver bullet. Roger Wells, P.E. SAIC 221 Third St Newport, RI 02840 401-847-4210 (voice) 401-849-1585 (fax) ro...@mt... Andrew Hart <ar...@us...> Sent by: min...@li... 11/30/2004 11:30 AM Please respond to mingw-users To: min...@li... cc: Subject: Re: [Mingw-users] linking: 2.95.2 vs 3.3.1 I'm not entirely sure this is what you want, but you might try the -u switch. It's a linker option that is used to "Pretend the symbol is undefined, to force linking of library modules to define it. You can use -u multiple times with different symbols to force loading of additional library modules." --Andrew WELLS, ROGER K. wrote: > Hello, > > We are in the process of (finally) converting from MinGW GCC 2.95.2 to > 3.3.1. > In our system we have a library that we wrote that implements posix > termios functions to support a rather complete interface to serial ports. > (We interface to lots of hardware). This library implements among others > the functions open, close, read & write. > > Under 2.95.2 the linker always resolves references to these functions > through our library. Under 3.3.1 they are resolved through msvcrt.dll. I > have tried every conceivable ordering of the library reference on the > linker command line. Our build scripts invoke the linker via "gcc". > > The question is: Is there a way to force resolution of references that may > exist in msvcrt & elsewhere to a chosen library? > > Thanks in advance. > > > Roger Wells, P.E. > SAIC > 221 Third St > Newport, RI 02840 > 401-847-4210 (voice) > 401-849-1585 (fax) > ro...@mt... > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ MinGW-users mailing list Min...@li... You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |