Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com Message-ID: <168270-220021114175640560@M2W038.mail2web.com> X-Priority: 3 Reply-To: lhall@rfk.com X-Originating-IP: 209.113.174.244 From: "lhall@pop.ma.ultranet.com" To: bsathi@telcordia.com, cygwin@cygwin.com Subject: Re: Sample makefile Date: Mon, 4 Nov 2002 12:56:40 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 X-OriginalArrivalTime: 04 Nov 2002 17:56:40.0513 (UTC) FILETIME=[871DC310:01C2842B] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id gA4HvBq31816 First, there's no reason to split up the compile and link step. Do it in one step unless you know that you need to do otherwise. You'll generally have less trouble. BTW, you can skip '-lc' as well. You get this by default. That's true for '-lm' too. So now you know you have undefined references. Check the objects/libraries that you're using and see if those symbols are in there. If not, go looking for the objects/libraries that do contain those symbols. If you find the symbols but they look a little different (maybe they have @ at the end), then look up information about calling conventions at msdn.microsoft.com. The information there should allow you to bridge the gap. Good luck, Larry Original Message: ----------------- From: Brunda Sathi bsathi@telcordia.com Date: Mon, 4 Nov 2002 12:18:25 -0500 To: cygwin@cygwin.com Subject: Re: Sample makefile Here is the output from the linker D:\Oracle\ora92\oci\samples>ld -o cdemo81 cdemo81.o d: \oracle\ora92\oci\lib\msvc \oci.lib d:\oracle\ora92\oci\lib\msvc\msvcrt.lib -lc cdemo81.o(.text+0xcf7):cdemo81.c: undefined reference to `_impure_ptr' cdemo81.o(.text+0xd9a):cdemo81.c: undefined reference to `_impure_ptr' cdemo81.o(.text+0x131f):cdemo81.c: undefined reference to `_impure_ptr' d:\oracle\ora92\oci\lib\msvc\msvcrt.lib(build/intel/dll_obj/crtexe.obj) (.text+0x 5e):crtexe.c: undefined reference to `_imp___adjust_fdiv' d:\oracle\ora92\oci\lib\msvc\msvcrt.lib(build/intel/dll_obj/atonexit.obj) (.text+ 0xf):atonexit.c: undefined reference to `_imp___onexit' Thanks, Brunda -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/