Re: Makefile PRO*C to compile C++ files ?

From: Jeffery Cann <jcann_at_fairway.com>
Date: 1998/03/25
Message-ID: <3519735D.D7F3A5BA_at_fairway.com>#1/1


[Quoted] Check out the proc demo makefile 'proc.mk' it can make C++ - compiled objects.

You can find it in $ORACLE_HOME/precomp/demo/proc

sophie gaillard wrote:
>
> Hello,
>
> I try to compile a C++ file including SQL, I use PRO*C release 2.1.
>
> I am searching a makefile to compile programmes in C++.
>
> I try to do it myself but i get an error when i link (ld -dy ....)
>
> The error is :
>
> Undefined first referenced
> symbol in file
> cout test_connection.o
> __0FEendlR6Hostream test_connection.o
> __0oNIostream_initctv test_connection.o
> __0oNIostream_initdtv test_connection.o
> __0fOunsafe_ostreamGoutstrPCcTB test_connection.o
> ld: fatal: Symbol referencing errors. No output written to
> test_connection
>
> I think that the problem could come from the SYS_INCLUDE that i do:
>
> proc CODE=CPP SYS_INCLUDE=/home/opt/SUNWspro/SC4.0/include/CC
> SYS_INCLUDE=/usr/include sqlcheck=full userid=scott/tiger dbms=v6_char
> iname=test_connection.pc
>
> Could you help me or provide me a makefile for C++ programme SQL
>
> Gilles TOST (studient in a training period)
>
> Thank you very much, best regards.
 

-- 
Jeffery C. Cann
Senior Software Engineer
Fairway Systems, Inc.
Received on Wed Mar 25 1998 - 00:00:00 CET

Original text of this message