Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Problems in accessing c++ pointers in Eclipse
Problems in accessing c++ pointers in Eclipse [message #1007244] Tue, 05 February 2013 09:03
Innovator CSE is currently offline Innovator CSEFriend
Messages: 6
Registered: February 2013
Junior Member
Hi..
I am working on developing an Eclipse plugin which can access native methods. I am working in Ubuntu 12.10 with Eclipse 3.8.I have a .so file which has been generated from c++ files. Swig was used to generate Java wrappers. Now, the problem arises when I access pointers- it throws a type mismatch error for SWIGTYPE_p_int as 'cannot convert SWIGTPE_p_int to SWIGTYPE_p_int'. But this happens only within the plugin project. The methods in the .so file work perfectly well when accessed from within a normal Java application. I am at a loss to understand what to do. Can someone please help me?
pointer_add.i is the Swig interface file, pointer_add.cpp and pointer_add.h are the respective cpp and header files.
  • Attachment: pointer_add.i
    (Size: 0.18KB, Downloaded 43 times)
  • Attachment: pointer_add.h
    (Size: 0.04KB, Downloaded 51 times)
  • Attachment: pointer_add.cpp
    (Size: 0.14KB, Downloaded 52 times)
  • Attachment: error
    (Size: 3.41KB, Downloaded 43 times)
  • Attachment: pointer.tar.gz
    (Size: 10.00KB, Downloaded 41 times)
Previous Topic:Using Eclipse folding & projection to hide some portions of text (not an entire row)
Next Topic:org.eclipse.osgi.internal.loader.BundleLoader not seeing class in src folder
Goto Forum:
  


Current Time: Thu Dec 18 16:30:23 GMT 2014

Powered by FUDForum. Page generated in 0.01440 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software