Why cannot call eclipse from C++

From: Gang Bi <laxgb_at_nottingham.ac.uk>
Date: Wed 06 Nov 2002 12:11:20 PM GMT
Message-Id: <sdc906f3.047@ccw0c2.nottingham.ac.uk>
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)

my c++ program is very simple, because I just want to test if program can run properly or not, c++ program is shown below:

#include <iostream.h>
#include <eclipseclass.h>

void main(void)
{
   ec_init();
   ec_cleanup();
   cout<<"Hello\n";
}

I have already invoke eclipse.lib in additional library path, and put eclipse.dll in same directory with my C++ program, and why the errors like above will be happened during building phase.

Please reply to me to give me advice.

Thanks a lot.

Gang Bi
The Built Environment School, University of Nottingham
Received on Wed Nov 06 12:11:33 2002

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