bala chandar wrote:
> Hai,
> I recently installed Ubuntu 8.10.Actually I need g++ for my project.So
> I installed it through synaptic.I installed g++,g++ 4.1,g++4.2,g++ 4.3
> all shown in synaptic.
> But when i compile my project it says,
> stream.h - No Such File or Directory Found
> fstream.h - No Such File or Directory Found

I think you need to set proper 'CFLAGS' using 'pkg-config'. When I
searched for 'stream.h' it is inside 'directfb' directory.

$ find /usr -name 'stream.h'
/usr/include/directfb/direct/stream.h
$

Then I searched inside '.pc' files, These are the packages which
includes 'directfb' directory.

$ find /usr -name '*.pc' -exec grep -H 'Cflags:.*directfb' {} \;
/usr/lib/pkgconfig/direct.pc:Cflags: -D_REENTRANT
-I${prefix}/include/directfb

/usr/lib/pkgconfig/fusion.pc:Cflags: -I${prefix}/include/directfb

/usr/lib/pkgconfig/directfb.pc:Cflags: -D_REENTRANT
-I${prefix}/include/directfb

/usr/lib/pkgconfig/directfb-internal.pc:Cflags: -D_GNU_SOURCE
-I${prefix}/include/directfb-internal
$

I don't know what kind of programming you are doing, But you need to
include 'directfb' during compilation. Anyone of the below example will
include 'stream.h'

Eg:

$ g++ `pkg-config --cflags --libs 'direct'` -o output somefile.cpp
$ g++ `pkg-config --cflags --libs 'fusion'` -o output somefile.cpp
$ g++ `pkg-config --cflags --libs 'directfb'` -o output somefile.cpp
$ g++ `pkg-config --cflags --libs 'directfb-internal'` -o output
somefile.cpp

For fstream.h, I searched in my system, not able to find, The above
procedure will help you to get 'fstream.h' file's pkg-config.

Regards,
Mohan R.

_______________________________________________
To unsubscribe, email [email protected] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to