From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 From: pac7@post.cz To: 9fans@cse.psu.edu Date: Fri, 29 Apr 2005 07:53:37 +0200 Message-ID: Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Subject: [9fans] pls. HELP porting problem Topicbox-Message-UUID: 429bb980-ead0-11e9-9d60-3106f5b1d025 /* code from a native port: */ /* Definition of an arbitrary function with parameters */ struct gsl_function_struct=20 { double (* function) (double x, void * params); void * params; }; typedef struct gsl_function_struct gsl_function ; #define GSL_FN_EVAL(F,x) (*((F)->function))(x,(F)->params) /* Declarations */ gsl_function weighted_function; static double fn_cauchy (double x, void *params); /* main (foo.c)*/ #include #include /* line 55 :*/ weighted_function.function =3D &fn_cauchy; weighted_function.params =3D &fn_params; =3D=3D=3D=3D=3D> mk: warning: foo.c:55 qawo.c:39 address of array/func ignored Q1: Why? Q2: Reccommended workaround?? tx, ++pac. --=20 Levn=ECj=B9=ED internet v pracovn=ED dny ji=BE od 18:00 hod. Surfujte s VOLN=DD! http://mimospicku.volny.cz