Operating System - Tru64 Unix
1752608 Members
4324 Online
108788 Solutions
New Discussion юеВ

Re: stdcomp: declaration does not declare anything

 
Arch_Muthiah
Honored Contributor

stdcomp: declaration does not declare anything

Hi,

Env: DS10 Alpha, Tru64 Unix, C++ V7.1.

Compiling c++ program using g++ 2.9-GnuPro-99r1. I get the following error from "stdcomp" line#:1638 - declaration does not declare anything.

It is a existing program written on Tru64 V4.x, now I compile on Tru64 V5.1B

The line 1638 in "stdcomp" contains...

1631 // CXXL -- make unsupported flag -Wf,--no_bool work
1632 #if !defined(_BOOL_EXISTS)
1633 # ifdef _RWSTD_MSVC_BOOL_WARNING
1634 # pragma warning ( disable : 4237 )
1635 # endif
1636 #define _BOOL_EXISTS // we'll use workaround
1637 #define _RW_STD_NO_BOOL 1
1638 typedef int bool;
1639 #ifndef true
1640 # define true 1
1641 endif
1642 #ifndef false
1643 # define false 0
1644 #endif
1645 #endif // bool exists


Any idea,please?

Thanks
Archunan
Regards
Archie
3 REPLIES 3
Rob Leadbeater
Honored Contributor

Re: stdcomp: declaration does not declare anything

Hi,

It's a *long* time since I've done anything with C, let alone C++, however I would have one comment.

If you've got the HP C++ compiler installed, why are you trying to compile with the GNU compiler...?

I'd have thought that would cause some conflicts...


Cheers,

Rob
Steven Schweda
Honored Contributor

Re: stdcomp: declaration does not declare anything

> I'd have thought that would cause some conflicts...

I wouldn't. It certainly doesn't cause
problems with plain-old C.


Have you considered posting a small test
program?

> using g++ 2.9-GnuPro-99r1

Can't you find anything older? Around here:

urtx# g++ -v
Reading specs from /usr/local/lib/gcc/alphaev6-dec-osf5.1/3.4.6/specs
Configured with: /usr/local/gnu/gcc-3.4.6/configure
Thread model: posix
gcc version 3.4.6

urtx# g++ --version
g++ (GCC) 3.4.6

and I thought that _that_ was old.

My non-commercial Tru64 license did not
include a CXXOSF PAK, so I'm _forced_ to use
GCC for C++ (or else spend real money).
What's your excuse?

Did you build your GCC kit on the current
Tru64 OS, or was it bult on some older
version? OS upgrades (or new header files)
can break GCC.
Arch_Muthiah
Honored Contributor

Re: stdcomp: declaration does not declare anything

Rob,
I can use HP compilers, but I don't want to change the make files.

Steven,
I hope I have installed this version of gcc, g++ from the V5.1B media. I upgraded v5.1b to v5.b-3. I got the same error, so I again re-installed just v5.1B only, no upgrade. I will try to find the latest gcc, g++ and build on this os itself.

Resolution: As i don't have enough time to resolve the issue (finding the proper libraries), I decided to build the code on my old tru64 v4.0 system. It went through without any problems.

Thanks for both of your timings.

Archie

Regards
Archie