Eclipse & include file

U

unlexx

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?
 
J

Jorgen Grahn

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?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,427
Latest member
HildredDic

Latest Threads

Top