Microsoft
Software
Hardware
Network
Question : Need help to compile some code
Hi
i am trying to compile any code from bellow site
http://tldp.org/HOWTO/NCUR
SES-Progra
mming-HOWT
O/
ncurses_
programs/m
enus/
example :
menu_multi_column.c
i am tring to run like ths
gcc menu_multi_column.c -lcurses
menu_multi_column.c: In function âmainâ:
menu_multi_column.c:35: warning: incompatible implicit declaration of built-in function âcallocâ
/tmp/cci3uwBY.o: In function `main':
menu_multi_column.c:(.text
+0xc0): undefined reference to `new_item'
menu_multi_column.c:(.text
+0xd9): undefined reference to `new_menu'
menu_multi_column.c:(.text
+0xef): undefined reference to `menu_opts_off'
menu_multi_column.c:(.text
+0x13b): undefined reference to `set_menu_win'
menu_multi_column.c:(.text
+0x175): undefined reference to `set_menu_sub'
menu_multi_column.c:(.text
+0x190): undefined reference to `set_menu_format'
menu_multi_column.c:(.text
+0x1a3): undefined reference to `set_menu_mark'
menu_multi_column.c:(.text
+0x280): undefined reference to `post_menu'
menu_multi_column.c:(.text
+0x2ef): undefined reference to `menu_driver'
menu_multi_column.c:(.text
+0x304): undefined reference to `menu_driver'
menu_multi_column.c:(.text
+0x319): undefined reference to `menu_driver'
menu_multi_column.c:(.text
+0x32e): undefined reference to `menu_driver'
menu_multi_column.c:(.text
+0x343): undefined reference to `menu_driver'
/tmp/cci3uwBY.o:menu_multi
_column.c:
(.text+0x3
58): more undefined references to `menu_driver' follow
/tmp/cci3uwBY.o: In function `main':
menu_multi_column.c:(.text
+0x389): undefined reference to `unpost_menu'
menu_multi_column.c:(.text
+0x394): undefined reference to `free_menu'
menu_multi_column.c:(.text
+0x3b0): undefined reference to `free_item'
collect2: ld returned 1 exit status
how to compile these code
every code giving me same kind of problem
thanks for help
I am trying to execute this from linux console
Answer : Need help to compile some code
>> incompatible implicit declaration of built-in function calloc
You are missing a standard library:
#include <stdlib.h>
Random Solutions
phpmailer errorInfo
Untangle Ipcop
Flex custom component to layout in center of page...
Adding 2nd domain controller (Server 2008 R2 64bit) to existing 2003 sp2 domain
Disk Manager doesn't see the ISCSI Virtual Disks but One
Drupal Frontpage - Views through PHP
Where can I find corflags.exe?
P2V Fails using VMware COnverter standalone client
Exporting X509 published certificate information
Google Apps Gmail and legacy MS Exchange (SBS) 2003 Synchronisation