Oracle client in Cygwin?
Darius.Clynes@cec.eu.int
Darius.Clynes@cec.eu.int
Mon Aug 6 12:42:00 GMT 2001
>-----Original Message-----
>From: Tim Heath [ mailto:th374862@cosd.fedex.com ]
>Sent: Monday, August 06, 2001 7:04 PM
>To: CLYNES Darius (SCIC)
>Subject: Re: Oracle client in Cygwin?
>
>
>I would really like an example using pro-c if that is ok :)
Ok Attached is:
a makefile,
a settings file (defs.mk), and a dos2unix converter - both used by the
makefile.
a main.c
and an example.pc
just fill in the username, password, database
and change the select statement to correspond to your
data. good luck
>
>Thanks,
>
>Tim Heath
>
>Darius.Clynes@cec.eu.int wrote:
>>
>> Jim
>>
>> I know of 3 ways to do this.
>>
>> 1) Pro*C (the way I do it and you link to SQLLIB18.lib)
>> you have to call the pro-c compiler first
>>
>> 2) OCI (haven't tried this from cygwin but it should work
>if you link with
>> the right libs)
>>
>> 3) ODBC (haven't tried this from cygwin, but if you do let
>me know if it
>> works,
>> and send me an example please)
>>
>> After you install the Oracle Client, (with pro*c) and if you
>need an example
>>
>> i would be happy to send you one.
>>
>> Darius
>>
>> Darius Clynes
>> Software Engineer
>> European Commission
>> Rue De Mot 24
>> Brussels, 1040
>> Belgium
>>
>> Office tel: +32 2 2962441
>> fax: +32 2 2966025
>> Cell phone: +32 476 218850
>>
>> >-----Original Message-----
>> >From: Jim Drash [ mailto:jdrash@eesus.jnj.com ]
>> >Sent: Monday, August 06, 2001 6:49 PM
>> >To: cygwin@cygwin.com
>> >Subject: Oracle client in Cygwin?
>> >
>> >
>> >Is it possible to atttache to Oracle databases from within Cygwin?
>> >If so what is required? If this has been asked before, I could not
>> >find any reference to it in the archives?
>> >
>> >thanks in advance,
>> >jim drash <jdrash@eesus.jnj.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/
>> >
>>
>> --
>> 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/
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: defs.mk
Type: text/x-algol68
Size: 1858 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20010806/85807bb5/attachment.bin>
-------------- next part --------------
chmod +rw $1
cat $1 | tr -d '\r' > /tmp/$1
cat /tmp/$1 > $1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.pc
Type: text/x-c
Size: 2221 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20010806/85807bb5/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.c
Type: text/x-c
Size: 28 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20010806/85807bb5/attachment-0002.bin>
-------------- next part --------------
include defs.mk
#
# makefile for vuit generated applications.
#
#
# Need extra suffixes for uid file compilation.
#
.SUFFIXES: .pc
CINCLUDES = -I. -I$(PCCINCLUDE)
LOCALCFLAGS = -g $(CINCLUDES)
LINTFLAGS= $(CINCLUDES)
LIBS =
SRCS = main.c
SRCPCS = example.pc
OBJS = main.o example.o
IMAGE = my_example
all : $(IMAGE)
$(IMAGE) : $(OBJS)
$(CC) -o $(IMAGE) $(OBJS) $(LDFLAGS) $(LIBS) $(ORALIBS)
echo
main.o: main.c
example.o: example.pc example.c
#.DEFAULT:
# co $<
clean:
rm -f *.o $(IMAGE) $(SRCPCS:.pc=.c)
# DO NOT DELETE THIS LINE -- make depend depends on it.
More information about the Cygwin
mailing list