From: John Stone (johns_at_ks.uiuc.edu)
Date: Mon Jun 19 2006 - 14:46:57 CDT

Angel,
  You should be compiling the plugin like this:
g++ main.c graspplugin.C -I../../include -o gp
or
c++ main.c graspplugin.C -I../../include -o gp

The fact that you're missing the -I directive makes me wonder if
you're using an out-of-date molfile_plugin.h file.

The compilation commands should complete with no errors, and no warnings:
johns_at_dallas{53} c++ main.c graspplugin.C -I../../include -o gp
johns_at_dallas{54}
 
  John Stone
  vmd_at_ks.uiuc.edu

On Mon, Jun 19, 2006 at 12:23:04PM -0700, angel jiménez wrote:
> Sorry but I still have the same problem.
> Compiling with the new main.c:
> gcc main.c graspplugin.C -o gp
>
> main.c: In function `main':
> main.c:89: error: too many arguments to function
> graspplugin.C:264: error: invalid conversion from `const char*' to `int'
> graspplugin.C:264: error: invalid conversion from `int' to `const char*'
> graspplugin.C:264: error: cannot convert `const char*' to `void*(*)(const char*, const char*, int*)' in initialization
>
> Is the problem in the pugin or in main?
>
>
>
>
>
>
>
>
> ---------------------------------
> Yahoo! Sports Fantasy Football ’06 - Go with the leader. Start your league today!

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email: johns_at_ks.uiuc.edu                 Phone: 217-244-3349
  WWW: http://www.ks.uiuc.edu/~johns/      Fax: 217-244-6078