From: bolo AT cs DOT wisc DOT edu (Josef Burger) Subject: code generation and dll name resolution 9 Dec 1996 10:30:29 -0800 Sender: daemon AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <199612091732.LAA15584.cygnus.gnu-win32@orca.cs.wisc.edu> X-Authentication-Warning: orca.cs.wisc.edu: Host localhost [127.0.0.1] didn't use HELO protocol Original-To: gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com [ I'm using b16 ] Background: I'm compiling something that uses the winsock-2 api instead of winsock. I built a link library for ws2_32.dll, added the extra declarations for winsock2 to the headers, and tried to build. It compiles ok, but it fails to link. The link fails because the compiled code references names such as 'ntohs AT 4' or 'connect AT 12' instead of 'ntohs' or 'connect'. Aha, I say, I must rebuild my dll link library with name AT offset style names. That doesn't work ... because the 'name AT offset' compiled by the compiler is the name AT offset for the winsock-1 dll! I though the link libraries for the dlls are supposed to isolate normal code from the 'offset in dll' stuff???? How do I tell the *compiler* to generate plain 'name', or 'name AT offset' for functions in the winsock-2 dll I'm trying to link against, INSTEAD of the the winsock-1 names AT offset??? thanks! bolo - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".