Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7440735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:53:54+00:00 2026-05-29T10:53:54+00:00

On the Linux platform, I get compile errors for using a function named CURSES

  • 0

On the Linux platform, I get compile errors for using a function named CURSES. If I change the name to something else such as “my_curses” there are no more errors.
I understand there is a curses.h but I’m not aware of any functions named CURSES. Is there a function that already exists called CURSES in the standard or built in libraries?

PROTOTYPE:
void CURSES(int x)

ERROR:
“error: syntax error before numeric constant”

Then in the function declaration I get a bunch of similar errors along with a bunch of errors with “conflicting types”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:53:55+00:00Added an answer on May 29, 2026 at 10:53 am

    CURSES is probably a define. So your options are:

    • #undef CURSES — that’s not a good option unless you exactly know WHERE and by WHO this define is used.
    • call your function Curses, or cURSES or simply curses.
    • change name to your function.

    Edit: A simple grep on my includes told me that both curses.h and ncurses.h have this line

    #define CURSES 1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to compile vlc using the following instructions http://wiki.videolan.org/AndroidCompile . i get the
Alright, here is the output I get: arm-none-linux-gnueabi-ld --entry=main -dynamic-linker=/system/bin/linker -rpath-link=/home/oem/android-ndk-r3/build/platforms/android-5/arch-arm/usr/lib -L/home/oem/android-ndk-r3/build/platforms/android-5/arch-arm/usr/lib -nostdlib -lstdc++
For writing scripts for process automation in Linux platform, which scripting language will be
I'm writing a program on a Linux platform that is generating text files that
I develop some PHP project on Linux platform. Are there any disadvantages of putting
I have been asked to write a java program on linux platform. According to
We are planning to implement ACL on our Linux platform. Only one particular group
I am working on writing a network application in C++ on the Linux platform
I am looking into developing a small (read:rudimentary) web server on a linux platform
Is it possible to create binaries of other platform on Linux? Say I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.