Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 14 Mar 2003 13:46:34 -0800 (PST) From: "Peter A. Castro" To: =?iso-8859-1?Q?g=FCnter_strubinsky?= cc: cygwin AT cygwin DOT com Subject: RE: Cygwin + Oracle (Pro*C) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id h2ELmbH20445 On Fri, 14 Mar 2003, günter strubinsky wrote: > Well, it's not as trivial. The windows installation of Oracle preconfigures > for Visual C and creates all the micro$oft junk. There is no makefile as > example. This is only partially true. While Oracle does provide a graphic interface for many things, most of the command line environment is also present, just like the unix ports. lsnrctl is an example. It's a command line utility to manipulate the listener, just like in the unix ports. proc is another. proc takes the same command lines as documented in the Pro*C manual. These manuals should be available online at oracle.com, or on the Documentation CD which should have been shipped with the installation CD. > The documentation is virtually not existent, adapting to Microsoft's way: > 'The user is too stupid to understand; keep them in the dark so they can't > harm'. That's why there is a windows GUI-application that allows one button > precompile. This is not true. Windows is a more graphicly inclined environment, and Oracle often tries to provide easy and simple tools appropriate for the given environment. Windows easily accommodates graphic interfaces and customers often like to keep with one paradigm instead of having to switch between two or more. Many unix environments might be running under X, but often they are just opening xterms to type commands. > # I need to know how to invoke the precompiler manually. Set your $PATH and go seek the manual. > # How to compile & link the resulting C file. This is not what your original email stated. Compiling and linking is a different, but arguably related, topic from "how to get proc to work under cygwin". Since proc is just a windows app, you can run it like any other windows app from a cygwin shell. > It is very hard to deduct what lib's and .h files should be included, > especially since the directory tree is huge. I will dig around and make it > work. Sooner or later. Sooner would be naturally better. > > Therefore: if anybody got further than me. I appreciate any hints you > provide and will post whatever conclusions I derive. Without HTML! 8p Common headers are provided in the public directories of the various products. Most Oracle libraries under Windows are DLLs. Check the demo directories under precomp for some example code and makefiles. I'm getting the impression you want to compile & link using gcc and not Visual C++. If that's the case, then this will likely not work, or at least will take a large amount of effort. Oracle uses the MSVCRT runtime which has been proven to not mix well with cygwin and gcc runtimes. A little more definition on your goals would really help here. > günter strubinsky > > Tel: 402.212.0196 > > -----Original Message----- > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of > Peter A. Castro > Sent: Thursday, March 13, 2003 6:36 PM > To: günter strubinsky > Cc: cygwin AT cygwin DOT com > Subject: Re: Cygwin + Oracle (Pro*C) > > On Thu, 13 Mar 2003, günter strubinsky wrote: > > > Does anybody have any experience running Oracle 9i (win2k) + cygwin with > > the pro*C preprocessor? Howto? > > > > I don’t have a glue how to get proc to work under cygwin. When I install > on > > win2k I don’t think I can run the proC tool over the cygwin environment?!? > > Or can I install Oracle’s RedHat version? > > It should be pretty trivial. Set your path to include $ORACLE_HOME/bin > (that means you have to set ORACLE_HOME first, and it probably should be > in DOS syntax). ProC is just another windows command line app, so it > should run on top of Cygwin without any problems. Are you having a > specific problem? > > > I am lost right now… > > günter strubinsky > > < strubinsky AT acm DOT org> > > Tel: 402.212.0196 > > -- Peter A. Castro or "Cats are just autistic Dogs" -- Dr. Tony Attwood -- 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/