Solved

error in curses.h on Sol 2.6

Posted on 2003-10-28
3
262 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 250 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

696 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