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 [EMAIL PROTECTED]
Date: Mon, 4 Nov 2002 12:18:25 -0500
To: [EMAIL PROTECTED]
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/

Reply via email to