Jump to content

pdcurses , form header file

- - - - -

  • Please log in to reply
11 replies to this topic

#1
joy39

joy39

    Newbie

  • Members
  • Pip
  • 7 posts
i have downloaded pdcurses and installed it.

and , right now i am studying a ncurses tutorial , Introduction

there are some sample examples also. but, when i try to compile "form"
code examples , i see that there are no <form.h> header file in the pdcurses installation.

has, anyone used pdcurses? where can i get the form.h header file for pdcurses?

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,720 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
What operating system are you using? Are you sure you have your compile paths set up properly?

EDIT: After a quick check online, I saw you posted your question on another forum. The apparent answer is that pdcurses apparently only supports panels, not forms. You'll have to install an extension or something.
sudo rm -rf /

#3
joy39

joy39

    Newbie

  • Members
  • Pip
  • 7 posts

dargueta said:

What operating system are you using? Are you sure you have your compile paths set up properly?

EDIT: After a quick check online, I saw you posted your question on another forum. The apparent answer is that pdcurses apparently only supports panels, not forms. You'll have to install an extension or something.

i am using winxp. and afaik ncurses is for linux/unix and pdcurses is for dos/ windows .
but, there is no tutorial for pdcurses.

is there anything that i can use in winxp that supports forms?

#4
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,720 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
What compiler are you using? You might have to set up the library path, I'll need to check.
sudo rm -rf /

#5
joy39

joy39

    Newbie

  • Members
  • Pip
  • 7 posts

dargueta said:

What compiler are you using? You might have to set up the library path, I'll need to check.

i am using pelles c.

#6
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,720 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Compiler, not IDE.
sudo rm -rf /

#7
joy39

joy39

    Newbie

  • Members
  • Pip
  • 7 posts

dargueta said:

Compiler, not IDE.
sorry, if i sound stupid! i use the compiler which is in(?) pelles c. please explain it to me a liitle bit ,if i am absolutely having a false idea.

---------- Post added at 03:52 PM ---------- Previous post was at 02:02 PM ----------

dargueta said:

What compiler are you using? You might have to set up the library path, I'll need to check.

i will tell the steps i used.
i downloaded pdcurses and installed using the steps given hereHow to use PDCurses? - C++ Forum.(using it in pelles c)

but, since there are no pdcurses tutorial , i am following ncurses tutorial . now, ncurses tutorial has some sample programs . so, in the form programs there is a form.h header file which is not present in pdcurses.

my, question was is there any way to get it for pdcurses or any way to use ncurses in windows or anything other which supports forms and can be used in windowsxp.

#8
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,720 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Ooooh, okay. Now I understand. Have you looked at the sample programs that came with PDCurses?

EDIT: Might be outta luck.
c++ - Menus library with PDCurses - Stack Overflow

I know it's for menus, but I suspect this is also the case for forms.
sudo rm -rf /

#9
joy39

joy39

    Newbie

  • Members
  • Pip
  • 7 posts

dargueta said:

Ooooh, okay. Now I understand. Have you looked at the sample programs that came with PDCurses?

EDIT: Might be outta luck.
c++ - Menus library with PDCurses - Stack Overflow

I know it's for menus, but I suspect this is also the case for forms.

thanks a lot for your reply! this may well be my savior , but, there is a thing about extracting from ncurses and then compiling with pdcurses , but, i can't what does extracting from ncurses mean . i am copy pasting the form folder and the include folder from ncurses to pelles c folder but, it isn't working.

sorry , for my late reply!

#10
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,720 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Copying and pasting won't work. Erase those; you need to change Pelles' library and include paths to include those new folders. Do not forget to add the libraries (which are not the same as headers).
sudo rm -rf /

#11
joy39

joy39

    Newbie

  • Members
  • Pip
  • 7 posts

dargueta said:

Copying and pasting won't work. Erase those; you need to change Pelles' library and include paths to include those new folders. Do not forget to add the libraries (which are not the same as headers).

there are no library folder in the package . there is only a form folder , and others as ada95 , c++ ,man , menu ncurses, include , panel etc.
the form folder contains header file form.h and other c source files also , i have included the form folder and the include folder
of the ncurses in pelles c path , but , it isn't working .

examples of errors and warnings might help!

Quote

C:\Program Files\PellesC\Include\form.h(268): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\form.h(268): error #2001: Syntax error: expected ';' but found 'TYPE_ALPHA'.
C:\Program Files\PellesC\Include\form.h(268): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\form.h(269): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\form.h(269): error #2001: Syntax error: expected ';' but found 'TYPE_ALNUM'
there are 100 errors and wrnings like these!!!

#12
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,720 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
This means that you're missing another header that has declarations for other data types.
sudo rm -rf /




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users