View Full Version : [ubuntu] How do i add a C/C++ library?
lurikeen
April 11th, 2009, 05:13 AM
I'm trying to get curses.h and ncurses.h, but I have no idea how. Any help?
ve4cib
April 11th, 2009, 06:20 AM
Have you installed the libncurses development package?
sudo apt-get install libncurses5-dev
lurikeen
April 11th, 2009, 07:42 AM
Yep, I get this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libncurses5-dev is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-2.6.27-7 linux-headers-2.6.27-7-generic
linux-image-2.6.27-3-rt
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Know what to make of this?
ve4cib
April 11th, 2009, 06:36 PM
Nothing exciting about that output. All it's saying is that you have the package installed and that you've got a few left-over dependencies from an old upgrade kicking around.
Could you please post the output of
locate curses.h
You should get
/usr/include/curses.h
/usr/include/ncurses.h
(and maybe some other lines of output, but those are the important ones).
Provided those are there then the problem is most likely with your code and/or your Makefile.
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.