• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

error in curses.h on Sol 2.6

Hi,

My code uses curses.h. The code builds fine on Sol 2.7 and sol 2.8, however, when I build the code on Sol2.6, i am getting the following error:
"/usr/include/curses.h", line 80: Error: A declaration does not specify a tag or an identifier.

The line 80 is
typedef char bool;

Looks to be curses.h is broken here on this line.
Is there a patch available for the same or if some one could provide any other pointers on the same.

In Sol2.7 this statement is enclosed in an #ifdef.

Thanks.
0
avi_india
Asked:
avi_india
  • 2
1 Solution
 
shivsaCommented:
try to put this declaration with this.
#ifndef __cplusplus .. #endif

or try to complile thing commenting out this definition.
0
 
avi_indiaAuthor Commented:
That would mean touching and modifying the curses.h file.
Is this the only way out, as I had alrady tried this yesterday and this works.
But if it requires modifying curses.h file then Is there a patch for this?
0
 
shivsaCommented:
No, as far as i know sun did not release any patch for this bug. may be user did not think they need a patch for this.
but they fixed this problem in later solaris releases.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now