Home » Developer & Programmer » Precompilers, OCI & OCCI » How to compile multiple Pro*C programs in single C++ file
How to compile multiple Pro*C programs in single C++ file [message #158889] Tue, 14 February 2006 23:37 Go to next message
ravimahi
Messages: 6
Registered: December 2005
Junior Member
Hi All,
Actually I have created two Pro*C files.I am calling these two Pro*C files from one C++(main function) file.When I am calling these two methods, its giving error message.

ld: Duplicate symbol "sqlca" in files down.o and down1.o
ld: Duplicate symbol "connstr2" in files down.o and down1.o
ld: Duplicate symbol "sqlerror()" in files down.o and down1.o
3 errors.

I am declaring these variables in both of these programs,

How to solve this problem.

Thanks in Advance,
ravi_thangaraj@rediffmail.com

Ravi Kumar.T


Re: How to compile multiple Pro*C programs in single C++ file [message #159005 is a reply to message #158889] Wed, 15 February 2006 08:03 Go to previous messageGo to next message
kshkid
Messages: 24
Registered: November 2005
Junior Member
check whether the common ORACLE structures have been redefined.
Or used in a redundant way,

as you might have worked with 2 files individually and when combining the object files it may error out for redundant declarations
Re: How to compile multiple Pro*C programs in single C++ file [message #159272 is a reply to message #159005] Fri, 17 February 2006 02:00 Go to previous message
ravimahi
Messages: 6
Registered: December 2005
Junior Member
Hi,
I have included EXEC SQL INCLUDE SQLCA; in both files.I think the error is according to this.Pls give me solution asap,because this is urgent.

Thanks & Regards,
Ravi Kumar.T
Previous Topic: Free C++ Library for OCI Aggregate Functions
Next Topic: OCIDefineByPos && Retrieving a DATE column...
Goto Forum:
  


Current Time: Fri Mar 29 06:44:44 CDT 2024