delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <168270-220021114175640560@M2W038.mail2web.com> |
X-Priority: | 3 |
Reply-To: | lhall AT rfk DOT com |
X-Originating-IP: | 209.113.174.244 |
From: | "lhall AT pop DOT ma DOT ultranet DOT com" <lhall AT pop DOT ma DOT ultranet DOT com> |
To: | bsathi AT telcordia DOT com, cygwin AT cygwin DOT com |
Subject: | Re: Sample makefile |
Date: | Mon, 4 Nov 2002 12:56:40 -0500 |
MIME-Version: | 1.0 |
X-OriginalArrivalTime: | 04 Nov 2002 17:56:40.0513 (UTC) FILETIME=[871DC310:01C2842B] |
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 @<some number> 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 AT telcordia DOT com Date: Mon, 4 Nov 2002 12:18:25 -0500 To: cygwin AT cygwin DOT 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |