delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/01/16:14:33

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
Subject: Sample makefile
To: cygwin AT cygwin DOT com
Message-ID: <OF020FE6F0.E52E8473-ON85256C64.00740937@cc.telcordia.com>
From: "Brunda Sathi" <bsathi AT telcordia DOT com>
Date: Fri, 1 Nov 2002 16:14:06 -0500
MIME-Version: 1.0

Hi,
     I am trying to compile an oracle oci sample program "cdemo81.c" which
is under
          d:\oracle\ora92\oci\samples directory. It is referring to a
library called oci.lib which is under
          d:\oracle\ora92\oci\lib\msvc directory.
     All include files are under d:\oracle\ora92\oci\include directory
     cygwin dev tools are under d:\cygwin\bin directory.

My question is how do I create a simple cdemo1.exe file by compiling and
linking (command line).

I tried following command
     D:\Oracle\ora92\oci\samples>gcc -c -Id:\oracle\ora92\oci\include
cdemo81.c

copilation was successful.

     I am trying to link using following command and I am unable to link to
oci.lib.

D:\Oracle\ora92\oci\samples>ld -o cdemo81 -ld:
\oracle\ora92\oci\lib\msvc\oci.lib c
demo81.o -lc

I am getting undefined reference all functions that are called from
oci.lib.

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019