Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

C++ compile problem %CXX-W-NOCORDEL

 
likuair_1
Advisor

C++ compile problem %CXX-W-NOCORDEL

i used occi to connect oracle ,
#include ,
when i compiled the program ,the problem is :

void *operator new(size_t size, void *adctx);
..............^
%CXX-W-NOCORDEL, function "oracle::occi::PObject::operator
new(std::size_t={__size_t={unsigned int}}, void *)" has no
corresponding operator delete (to be called if an exception is
thrown during initialization of an allocated object)


i don't know how to solve it ...
9 REPLIES 9
Steven Schweda
Honored Contributor

Re: C++ compile problem %CXX-W-NOCORDEL

Complain to Oracle?

If someone else supplies the problem code,
then you may not be able to do much except
ignore the warning.

HELP CXX /WARNINGS

Look for "DISABLE=message-list".

It might help to know something about the
environment: hardware, software versions,
...
Dennis Handly
Acclaimed Contributor

Re: C++ compile problem %CXX-W-NOCORDEL

As Steven said you can ignore it. But you will leak if the PObject constructor does a throw.
Jan van den Ende
Honored Contributor

Re: C++ compile problem %CXX-W-NOCORDEL

likuair,

from your Forum Profile:


I have assigned points to 0 of 40 responses to my questions.


Maybe you can find some time to do some assigning?

http://forums1.itrc.hp.com/service/forums/helptips.do?#33

Mind, I do NOT say you necessarily need to give lots of points. It is fully up to _YOU_ to decide how many. If you consider an answer is not deserving any points, you can also assign 0 ( = zero ) points, and then that answer will no longer be counted as unassigned.
Consider, that every poster took at least the trouble of posting for you!

To easily find your streams with unassigned points, click your own name somewhere.
This will bring up your profile.
Near the bottom of that page, under the caption "My Question(s)" you will find "questions or topics with unassigned points " Clicking that will give all, and only, your questions that still have unassigned postings.

Thanks on behalf of your Forum colleagues.

PS. nothing personal in this. I try to post it to everyone with this kind of assignment ratio in this forum. If you have received a posting like this before please do not take offence none is intended!

PPS. Zero points for THIS entry, please.

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
likuair_1
Advisor

Re: C++ compile problem %CXX-W-NOCORDEL

Mr. Steven Schweda :
I also can not link the programs if I ignore this warning.
The Attachment is the programs,and the linker error is:
%ILINK-W-NUDFSYMS, 7 undefined symbols:
%ILINK-I-UDFSYM, CX3$ZN6ORACLE4OCC4DTD1EV2LTE3HM
%ILINK-I-UDFSYM, CX3$ZN6ORCL4OCC11ENVRNMN2J8I97C
%ILINK-I-UDFSYM, CX3$ZN6ORCL4OCC11ENVRNMN3REJDD6
%ILINK-I-UDFSYM, CX3$ZN6ORCL4OCC4DT13GTSY1C4916J
%ILINK-I-UDFSYM, CX3$ZN6ORCL4OCC4DT8FRMTX176C5BE
%ILINK-I-UDFSYM, CX3$ZN6ORCL4OCC4DTC1EPKN142BSMN
%ILINK-I-UDFSYM, CX3$ZTN6ORCL4OCC12SQLXCP36G5CI6
%ILINK-W-USEUNDEF, undefined symbol CX3$ZN6ORCL4OCC11ENVRNMN2J8I97C referenced
source code name: "oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void *, void *(*)(void *, "
section: .text
offset: %X0000000000000090 slot: 2
module: DBA
file: BKMASIC_ROOT:[USERS.LK.occi]DBA.OBJ;1
Steven Schweda
Honored Contributor

Re: C++ compile problem %CXX-W-NOCORDEL

> Jun 22, 2009 05:01:18 GMT 1 pts

With encouragement like that, it's hard to
resist trying to help.


> The Attachment [...]

A ".rar" archive is among the least popular
formats on a VMS system.

Not particularly useful, either:

alp $ mms

delFil dba.lis;*,dba.obj;*
%DCL-W-IVVERB, unrecognized command verb - check validity and spelling
\DELFIL\
%MMS-F-ABORT, For target DBA.OBJ, CLI returned abort status: %X00038090.
-CLI-W-IVVERB, unrecognized command verb - check validity and spelling

alp $ mms test.exe

!!! delete test.lis;*,test.obj;*
cxx/NOMEMBER_ALIGNMENT/list/warning=DISABLE=message-list/float=ieee/prefix=all/I
NCLUDE=ORA_ROOT:[rdbms.public] test.cxx

%CXX-W-UNKMSGID, On command line, message tag message-list is invalid,
ignored

#include
.................^
%CXX-F-SRCFILNOOPEN, could not open source file "occi.h"
at line number 4 in file ALP$DKA0:[SMS.ITRC.331865.TEST]DBA.H;1

%CXX-I-MESSAGE, 1 catastrophic error detected in the compilation of "ALP$DKA0:[S
MS.ITRC.331865.TEST]TEST.CXX;1".

%CXX-I-MESSAGE, Compilation terminated.
%MMS-F-ABORT, For target TEST.OBJ, CLI returned abort status: %X18000004.


> [...] /warning=DISABLE=message-list

You thought hard about that qualifier, did
you?


> [...] %CXX-F-SRCFILNOOPEN, could not open source file "occi.h"

Not part of the OS.


> %ILINK-W-NUDFSYMS, 7 undefined symbols:

Knowing nothing, I wouldn't expect one lonely
compiler warning to cause "7 undefined
symbols".


> %ILINK-I-UDFSYM, CX3$ZN6ORACLE4OCC4DTD1EV2LTE3HM
[...]

HELP CXXDEMANGLE
H.Becker
Honored Contributor

Re: C++ compile problem %CXX-W-NOCORDEL

>>>
> %ILINK-I-UDFSYM, CX3$ZN6ORACLE4OCC4DTD1EV2LTE3HM
[...]

HELP CXXDEMANGLE
<<<

Please note the %ILINK. This is I64 and the IA64_LINKER knows how to demangle, if the information is available.

So there is no need to ask the CXXDEMANGLE utility, because the unresolved mangled name was already demangled by your friendly linker:
source code name: "oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mod
e, void *, void *(*)(void *, "

And yes, this doesn't seem related to the compiler warning, just a missing object or shareable image from Oracle.
likuair_1
Advisor

Re: C++ compile problem %CXX-W-NOCORDEL

Hi Mr.H.Becker ,
I also think that I missed some Oracle library,the Link file is this:
link/map test.obj,dba.obj,test.opt/opt
reqlib/libr
comlib/libr
ORACLE_ROOT:[LIB32]LIBCLNTSH.SO/SHAREABLE
ora_root:[lib32]LIBOCCI10/LIB
ora_root:[lib32]LIBCLNTST10/LIB
%ILINK-W-COMPWARN, compilation warnings
module: test
file: BKMASIC_ROOT:[USERS.LK.occi]test.OBJ;1
%ILINK-W-COMPWARN, compilation warnings
module: DBA
file: BKMASIC_ROOT:[USERS.LK.occi]DBA.OBJ;1

So ,any body ever test connect with Oracle by OCCI? please give me some advice ,thank you very much.
H.Becker
Honored Contributor

Re: C++ compile problem %CXX-W-NOCORDEL

>>>
ora_root:[lib32]LIBOCCI10/LIB
<<<

The Oracle supplied documentation probably told you how to link your example. So I would check the doumentation and ask Oracle, what's missing.

From the name, the above library seems to be the only one related to OCCI. You can check with librarian and /demangle if it contains the missing routine, the soruce code name. It's unlikely that it is in this OLB. You can check other Oracle supplied libraries the same way. There is no easy way to do this with the Oracle supplied shareable images. But you can search them for the mangled name. This way you might find the missing module or shareable image.

Sorry, I never used Oracle or OCCI.
likuair_1
Advisor

Re: C++ compile problem %CXX-W-NOCORDEL

Hi,Mr.Becker,

I just modified the CXX compile options,added standard=ARM ,then the compile warning lost,but the linker errors were still there.

I checked the examples in unix and linux ,the oracle link library is the same :
ora_root:[lib32]LIBOCCI10/LIB
ora_root:[lib32]LIBCLNTST10/LIB
ORACLE_ROOT:[LIB32]LIBCLNTSH.SO/SHAREABLE,
and also other people told me that they tested the same programs successful in ALPHA openvms7.3+oracle9i.can not ORACLE10G+openvms8.3 ?