Calling SWT from C++ code

Andrew Haley aph@redhat.com
Fri Nov 5 10:46:00 GMT 2004


Praful bhoyar writes:
 > 
 > D:\wsp\callJH>g++ callJH.cpp
 > In file included from callJH.cpp:10:
 > ../MobileSimu/Phone.h:8:47: org/eclipse/swt/widgets/Composite.h: No such
 > file or
 >  directory

You haven't included a path to your include directory in your command
line.  g++ has no way to know where Composite.h is.  You need to find
out where Composite.h really is on your system and add its path with
"-I" to your g++ command line.

Andrew.



More information about the Java mailing list