Home » Developer & Programmer » Precompilers, OCI & OCCI » Proc C+ compilation
Proc C+ compilation [message #94449] Tue, 16 November 2004 09:12
ilho
Messages: 1
Registered: November 2004
Junior Member
Hello,

I am new to Proc using C++.

I used the Proc in C but I would like to use it in C++ as well.

I have looked many Makefiles and made mine but still not working.

Could you please help me?

Here is my Makefile.

##############################################################################
# Sample Makefile
#
# Oracle
#
###############################################################################
include $(ORACLE_HOME)/precomp/lib/env_precomp.mk
CPLUSSYSINCLUDE='sys_include=(/opt/SUNWspro6u1/WS6U1/include/CC4,/usr/include,/usr/local/lib/g++-include)'
PROCPLSFLAGS = sqlcheck=full lines=yes code=cpp $(CPLUSSYSINCLUDE)
    include=$(ORACLE_HOME)/proc/lib
PROFLAGS=$(PROCPLSFLAGS)
INCLUDES=$(I_SYM). $(PRECOMPPUBLIC) -I/usr/local/lib/g++-include
ILHO_LIBS=-lclntsh
CC = gcc
CCP = g++

CFLAGS = -I. -g
TARGET=dbtest
OBJS=dbtest.o
SOURCE=dbtest.pc

###############################################################################
#
# Compiling....
#
###############################################################################
$(TARGET): $(SOURCE)
    $(PROC) $(INCLUDES) $(PROFLAGS) iname=$(SOURCE) include=.
    $(CCP) -o $(TARGET) $(TARGET).c $(INCLUDES) $(ILHO_LIBS)

clean :
    rm -rf *.o $(TARGET) core
    rm -rf $(TARGET).c

 

When I run make, I get an error saying that it cannot find iostream and string file in dbtest.pc program.

In dbtest.pc, I simply said,

#include <iostream>

#include <string>

 

Please give me some idea!!!

 

Thanks in advance,

 

ilho :)
Previous Topic: Pro*C Books
Next Topic: How to connect c+ with oracle8
Goto Forum:
  


Current Time: Sat Aug 15 15:37:50 CDT 2020