Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Eclipse & include file

2 views
Skip to first unread message

unlexx

unread,
Apr 1, 2009, 6:42:01 AM4/1/09
to

Ubuntu 8.10 -- Intrepid
Eclipse 3.4 (Ganymede)

/../
#include <string>
#include <vector>
#include <libpq-fe.h>
/../

Project ->> build ALL
libpq-fe.h: No such file or directory


However
ls -l /usr/include/postgresql/libpq-fe.h
-rw-r--r-- 1 root root 18410 2009-02-11 01:55 /usr/include/postgresql/
libpq-fe.h
Why Eclipse no included file? No work operate directories recursively?
or error in declared include?

Jorgen Grahn

unread,
Apr 1, 2009, 10:39:33 AM4/1/09
to

If I were you I'd write

#include <postgresql/libpq-fe.h>

no matter if I used Eclipse, Emacs, Vi or MS Notepad. It tells the
reader what "libpq-fe.h" is. (I have to say that sounds like an
unusually badly chosen include file name.)

/Jorgen

--
// Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu
\X/ snipabacken.se> R'lyeh wgah'nagl fhtagn!

0 new messages