1833377 Members
3205 Online
110052 Solutions
New Discussion

codelib for aC++?

 
SOLVED
Go to solution
Kevin (Gonzo) Bushman
Frequent Advisor

codelib for aC++?

I've got a programmer that has just started using aC++ on our development system (he's also the first to use it). He's trying to compile "OpenTop", an application we've already purchased from a company in the UK that does XML validation. During the compiles it is trying to reference a library called "codelib". Now, to be honest, I'm not a C/C++ programmer. Never have been. So I'm not fluent on what's needed here.

I have a very recent version of aC++ on the system (A.03.76, I think on an 11.11 system.) I've done a search on the system and this package (codelib) is not on the system. I've also tried doing a web search with very no helpful results.

I will also say that the doc's that come with OpenTop state that it must be compiled under GNU C++, which we don't have and can't install. That's why he's trying to compile it under our HP aC++. So codelib MAY be part of GNU's compiler. I just don't know.

Does anyone know anything about this library or what it would may take to find and possibly install it?

TIA - Points will be given where warranted.

-Gonzo
If you do nothing else in with your life, make friends with a dog.
12 REPLIES 12
Steven Schweda
Honored Contributor

Re: codelib for aC++?

> [...] I'm not fluent on what's needed here.

One more reason that an actual error message
might be more helpful than a vague
description.
Kevin (Gonzo) Bushman
Frequent Advisor

Re: codelib for aC++?

Thanks, Steven. I should have known I would need error messages...

When I asked the programmer for it, here's what he sent me. Hope it helps.

-------------------------

This is the output of the compile. The include files 'string', 'functional', 'list', 'vector', & 'map', that can't be located are 'C' classes that, per the documentation, are located in the 'codelibs' library.

----Starting compile and link----
(Bundled) cc: NLSPATH is /usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/C/%N.cat:
(Bundled) cc: CCOPTS is not set.
(Bundled) cc: INCLUDIR is INCLUDIR=/usr/include /usr/ccs/lbin/cpp /eset/tessu/opentop//samples/inetcopy/main.cpp main.i -$ -D__hp9000s800 -D__hppa -D__hpux -D__unix -P -I/usr/include/open
(Bundled) cc: Entering Preprocessor.
cpp: "/usr/include/opentop/ot/base/compdefs.h", line 22: error 4036: Can't open include file 'string'.
cpp: "/usr/include/opentop/ot/base/defs.h", line 26: error 4036: Can't open include file 'string'.
cpp: "/usr/include/opentop/ot/base/String.h", line 24: error 4036: Can't open include file 'string'.
cpp: "/usr/include/opentop/ot/base/StringUtils.h", line 33: error 4036: Can't open include file 'functional'.
cpp: "/usr/include/opentop/ot/base/System.h", line 29: error 4036: Can't open include file 'list'.
cpp: "/usr/include/opentop/ot/io/FileSystem.h", line 27: error 4036: Can't open include file 'list'.
cpp: "/usr/include/opentop/ot/io/File.h", line 29: error 4036: Can't open include file 'list'.
cpp: "/usr/include/opentop/ot/net/URLConnection.h", line 28: error 4036: Can't open include file 'vector'.
cpp: "/usr/include/opentop/ot/ssl/SSLInitParameters.h", line 26: error 4036: Can't open include file 'list'.
cpp: "/usr/include/opentop/ot/ssl/SSLContext.h", line 31: error 4036: Can't open include file 'list'.
cpp: "/usr/include/opentop/ot/auxil/CommandLineParser.h", line 26: error 4036: Can't open include file 'list'.
cpp: "/usr/include/opentop/ot/auxil/MessageSet.h", line 25: error 4036: Can't open include file 'map'.
cpp: "/usr/include/opentop/ot/auxil/MessageFactoryImpl.h", line 27: error 4036: Can't open include file 'list'.
If you do nothing else in with your life, make friends with a dog.
Kevin (Gonzo) Bushman
Frequent Advisor

Re: codelib for aC++?

I should have also stated that the include files it's referencing, /usr/include/opentop/ot/base/compdefs.h for example, are there. I put them in the directory structure given to us by OpenTop.

-Gonzo
If you do nothing else in with your life, make friends with a dog.
Steven Schweda
Honored Contributor

Re: codelib for aC++?

> (Bundled) cc: [...]

The bundled C compiler is barely a C
compiler. It's certainly not a C++ compiler.

> [...] it must be compiled under GNU C++,
> which we don't have and can't install.

Well, I'd guess that you'll need _some_ C++
compiler. HP sells one.

I'd also guess that if you look at one of the
complaint-generating header files, like:
"/usr/include/opentop/ot/base/compdefs.h", line 22:
you'll see a non-C-like "#include" directive.


> I've got a programmer [...]

Are you sure?
Steven Schweda
Honored Contributor

Re: codelib for aC++?

> (Bundled) cc: [...]

> I have a very recent version of aC++ on
> the system [...]

Perhaps so, but you don't seem to be using
it. I know nothing, but "cc" is probably not
the name to use.
Dennis Handly
Acclaimed Contributor

Re: codelib for aC++?

The cfront compiler used to have a "codelibs" component.

>The include files string, functional, list, vector, & map, that can't be located are 'C' classes that, per the documentation, are located in the 'codelibs' library.

These are part of the Standard C++ library.

>(Bundled) cc:

Why are you using the bundled C compiler for a C++ application?
Kevin (Gonzo) Bushman
Frequent Advisor

Re: codelib for aC++?

So what you guys are saying is that he is trying to use the bundled C compiler (not the C++, or aC++) using C++ components that certainly won't work with the C compiler and that the root cause of his issues is that he is not calling C++ compiler correctly? Am I getting this right?

So if I've got this right, how SHOULD he be calling the aC++ compiler? (Remember, I'm certainly not a C/C++ programmer by ANY definition!)

-Gonzo
If you do nothing else in with your life, make friends with a dog.
Dennis Handly
Acclaimed Contributor
Solution

Re: codelib for aC++?

>how SHOULD he be calling the aC++ compiler?

The aC++ driver is: aCC
He probably needs to set this makefile macro: CXX=aCC
Kevin (Gonzo) Bushman
Frequent Advisor

Re: codelib for aC++?

Where should aCC be? I've looked and can't find it!
If you do nothing else in with your life, make friends with a dog.
Peter Nikitka
Honored Contributor

Re: codelib for aC++?

Hi,

not 11i but at my 11iv2:
uname -a
HP-UX hp1 B.11.23 U ia64 2944899503 unlimited-user license
root@hp1[630] type aCC
aCC is /opt/aCC/bin/aCC
root@hp1[631]
root@hp1[631] aCC -V
aCC: HP C/aC++ B3910B A.06.14 [Feb 22 2007]

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Kevin (Gonzo) Bushman
Frequent Advisor

Re: codelib for aC++?

Thanks, to all. Points have been awarded (or will be shortly).

Turns out all we had was the runtime libraries patch. So now I'll be off to download/install the evaluation copy of the compiler.

This programmer will then see if he can get OpenTop to compile under aC++. If it does, we'll have to look at the option of buying the compiler.

-Gonzo
If you do nothing else in with your life, make friends with a dog.
Steven Schweda
Honored Contributor

Re: codelib for aC++?

> So what you guys are saying [...]

It's what the _compiler_ is saying.

One might question the talent of a so-called
programmer who can't tell if he's using a C++
compiler or not. I know nearly nothing about
C++, and even I can do that much.