[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

error in curses.h on Sol 2.6

Posted on 2003-10-28
3
Medium Priority
?
266 Views
Last Modified: 2013-12-27
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
Comment
Question by:avi_india
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 24

Accepted Solution

by:
shivsa earned 750 total points
ID: 9634983
try to put this declaration with this.
#ifndef __cplusplus .. #endif

or try to complile thing commenting out this definition.
0
 

Author Comment

by:avi_india
ID: 9639336
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
 
LVL 24

Expert Comment

by:shivsa
ID: 9639406
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question