Re: Why cannot call eclipse from C++

From: Joachim Schimpf <j.schimpf_at_icparc.ic.ac.uk>
Date: Fri 08 Nov 2002 10:17:05 AM GMT
Message-ID: <3DCB8F21.F453A583@icparc.ic.ac.uk>
Gang Bi wrote:
> 
> To Whom It May Concern
> 
>             Currently I try to run c++ program embedded with eclipse by using Visual C++ 6.0, and there are no errors happened in compile phase, but when I try to build .cpp, it always produce linking errors like
>           Linking...
>           test.obj : error LNK2001: unresolved external symbol _ec_cleanup@0
>           test.obj : error LNK2001: unresolved external symbol _ec_init@0
>           Debug/test.exe : fatal error LNK1120: 2 unresolved externals
>           Error executing link.exe.
> 
>          test.exe - 3 error(s), 0 warning(s)


You need to do 3 things in your Visual C++ project settings:

C/C++, Preprocessor, Additional include directories:

	add <eclipsedir>/include/i386_nt

Link, Input, Additional library path:

	add <eclipsedir>/lib/i386_nt

Link, Input, Object/library modules:

	add eclipse.lib

where <eclipsedir> is the directory where you have
Eclipse installed.


-- 
 Joachim Schimpf              /             phone: +44 20 7594 8187
 IC-Parc, Imperial College   /            mailto:J.Schimpf@ic.ac.uk
 London SW7 2AZ, UK         /    http://www.icparc.ic.ac.uk/eclipse
Received on Fri Nov 08 10:17:09 2002

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:08:18 PM GMT GMT