Re: proc vs float

From: Rob E. Allan <rallan_at_ohgpu.hydro.on.ca>
Date: Thu, 22 Jul 1993 12:36:18 GMT
Message-ID: <1993Jul22.123618.6512_at_ohgpu.hydro.on.ca>


In article <CAK4DC.A2x_at_uk.ac.brookes> p0070621_at_oxford-brookes.ac.uk (Tommy Wareing) writes:
>Rob E. Allan (Rob.E.Allan_at_hydro.on.ca) wrote:
>> I am having problems gettin ProC to accept a float in
>> an update statement.
>
>
>> If anyone could enlighten me regarding this, I would be very grateful.
>> Oh yes, I'm running Oracle 6.036 under SunOS 4.1.1.
>> Email response is best, thanks,
>
>I had this problem for a while, and struggled over it until I realised
>we'd got two C compilers on our installation, and I was using the
>wrong one :-(. For some reason, everything except floats seem to work
>fine using /usr/ucb/cc, but to handle floats to HAVE to use /usr/5bin/cc.
>
>> rob allan email:rob.e.allan_at_hydro.on.ca
>
>--
> _________________________ ______________________________________
> / Tommy Wareing \ / Whadda you mean it's all my fault? \
>| p0070621_at_brookes.ac.uk X Deny everything, and if you can't: |
> \ 0865-483389 / \ Pass the Buck /
> ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Now I'm really confused. I forgot to mention that I am linking this module as a part of a C++ program (I declare the function extern "C"). I do compile it with /usr/5bin/cc but I link it with CC (the C++ linker.) When I compile the module as a main, it works but only when linked with /usr/5bin/cc. If I link it wiht the C++ linker (CC) I get the segmentation fault.

Is this a lib problem? Can anyone shed some light on this?

BTW, thanks for the quick response.

rob allan email:rob.e.allan_at_hydro.on.ca Received on Thu Jul 22 1993 - 14:36:18 CEST

Original text of this message