Solved

error in curses.h on Sol 2.6

Posted on 2003-10-28
3
258 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
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.

708 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now