Embed ECLiPSe in C/C++

From: Jordan C N Chong <chong_at_cs.utwente.nl>
Date: Sun 11 May 2003 05:48:07 PM GMT
Message-ID: <CAEBJPIJEPDOELLGKECLOEFMCBAA.chong@cs.utwente.nl>
Dear all

I have tried the examples provided, with the instruction in the manual
(Chapter 2, section 2.1.3). I tried the example, eg_c_basic.c:

gcc -I$ECLIPSEDIR/include/$ARCH
eg_c_basic.c -L$ECLIPSEDIR/lib/$ARCH -leclipse

and it works perfectly fine. Then, I try the example, eg_cc_basic.cc (by
using command cc), I got the following errors:

------------- ERRORS ------------------------- START--------------
In file included from
/usr/local/eclipse/include/i386_linux/eclipseclass.h:24,
                 from eg_cc_basic.cc:19:
/usr/local/eclipse/include/i386_linux/eclipse_cc.h: In function `EC_word
   term(EC_functor, EC_word, EC_word, EC_word, EC_word)':
/usr/local/eclipse/include/i386_linux/eclipse_cc.h:1920: warning: cannot
pass
   objects of non-POD type `const class EC_word' through `...'
/usr/local/eclipse/include/i386_linux/eclipse_cc.h:1920: warning: cannot
pass
   objects of non-POD type `const class EC_word' through `...'
/usr/local/eclipse/include/i386_linux/eclipse_cc.h:1920: warning: cannot
pass
   objects of non-POD type `const class EC_word' through `...'
/usr/local/eclipse/include/i386_linux/eclipse_cc.h:1920: warning: cannot
pass
   objects of non-POD type `const class EC_word' through `...'
/usr/local/eclipse/include/i386_linux/eclipse_cc.h: In function `EC_word
   term(EC_functor, EC_word, EC_word, EC_word, EC_word, EC_word, EC_word,
   EC_word, EC_word, EC_word, EC_word)':
/usr/local/eclipse/include/i386_linux/eclipse_cc.h:1937: warning: cannot
pass
   objects of non-POD type `const class EC_word' through `...'
/usr/local/eclipse/include/i386_linux/eclipse_cc.h:1937: warning: cannot
pass
   objects of non-POD type `const class EC_word' through `...'
/usr/local/eclipse/include/i386_linux/eclipse_cc.h:1937: warning: cannot
pass
   objects of non-POD type `const class EC_word' through `...'
/usr/local/eclipse/include/i386_linux/eclipse_cc.h:1937: warning: cannot
pass
   objects of non-POD type `const class EC_word' through `...'
/usr/local/eclipse/include/i386_linux/eclipse_cc.h:1937: warning: cannot
pass
   objects of non-POD type `const class EC_word' through `...'
/usr/local/eclipse/include/i386_linux/eclipse_cc.h:1937: warning: cannot
pass
   objects of non-POD type `const class EC_word' through `...'
/usr/local/eclipse/include/i386_linux/eclipse_cc.h:1937: warning: cannot
pass
   objects of non-POD type `const class EC_word' through `...'
/usr/local/eclipse/include/i386_linux/eclipse_cc.h:1937: warning: cannot
pass
   objects of non-POD type `const class EC_word' through `...'
/usr/local/eclipse/include/i386_linux/eclipse_cc.h:1937: warning: cannot
pass
   objects of non-POD type `const class EC_word' through `...'
/usr/local/eclipse/include/i386_linux/eclipse_cc.h:1937: warning: cannot
pass
   objects of non-POD type `const class EC_word' through `...'
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
                 from eg_cc_basic.cc:20:
/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning
This file includes at least one deprecated or antiquated header. Please
consider using one of the 32 headers found in section 17.4.1.2
of the C++ standard. Examples include substituting the <X> header for the
<X.h> header for C++ includes, or <sstream> instead of the deprecated header
<strstream.h>. To disable this warning use -Wno-deprecated.
eg_cc_basic.cc: In function `int main()':
eg_cc_basic.cc:35: parse error before `:' token
------------- ERRORS ------------------------- END --------------

Please help. Thank you very much.

Regards,
Jordan Chong
EWI Department
Universiteit Twente
Received on Sun May 11 19:51:05 2003

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:24 PM GMT GMT