- Does deleting a package in Ubuntu delete the associated header files too?
- Is there a difference between installing packages manually and using the apt command?
- How to find the right package name required for particular header-file?
- Why does the code mentioned below runs when the header file is not present?
Details:
I installed LIBABW using :
sudo apt-get install libabw-dev
and also manually using the tar.gz package earlier.
I wrote a simple C++ code to extract data from Abiword files using libabw. The header files included in the code are
#include <stdio.h>
#include <string>
#include <cstring>
#include <librevenge-generators/librevenge-generators.h>
#include <librevenge-stream/librevenge-stream.h>
#include <libabw/libabw.h>
This is the command I run to compile the code:
g++ libabw.cc -I/usr/local/include/librevenge-0.0 -I/usr/local/include/libabw-0.1 -I/usr/local/include/librevenge-0.0 -I/usr/include/libxml2 -L/usr/local/lib -lrevenge-generators-0.0 -labw-0.1 -lrevenge-0.0 -lrevenge-stream-0.0
Now I deleted the libabw-dev package, manually from the extracted folder and also using
sudo apt-get purge --auto-remove libabw-dev
The code I wrote still compiles and still extracts data from Abiword documents.
On running apt-file -x search '/libabw/libabw.h$'
, I get the output libabw-dev: /usr/include/libabw-0.1/libabw/libabw.h
. But the directory /usr/include/libabw-0.1 doesn't exists.