From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA22559; Thu, 5 Dec 2002 11:06:22 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA22045 for ; Thu, 5 Dec 2002 11:06:21 +0100 (MET) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id gB5A6K121651 for ; Thu, 5 Dec 2002 11:06:20 +0100 (MET) Received: from akasha.ijm.jussieu.fr (akasha.ijm.jussieu.fr [134.157.173.57]) by shiva.jussieu.fr (8.12.5/jtpda-5.4) with ESMTP id gB5A67jR016381 ; Thu, 5 Dec 2002 11:06:10 +0100 (CET) Received: by akasha.ijm.jussieu.fr (Postfix, from userid 11004) id 2135D3C45B; Thu, 5 Dec 2002 11:06:02 +0100 (CET) From: Olivier Andrieu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15855.9481.904814.561073@akasha.ijm.jussieu.fr> Date: Thu, 5 Dec 2002 11:06:01 +0100 To: onlyclimb Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocamlgsl In-Reply-To: <3DEF7419.2010807@163.com> References: <3DEF7419.2010807@163.com> X-Mailer: VM 7.07 under Emacs 21.2.1 X-Antivirus: scanned by sophie at shiva.jussieu.fr Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk onlyclimb [Thursday 5 December 2002] : > > Is anything different to compile ocamlgsl in FreeBsd ? It should not. > i do as the readme told. (using gmake ) > > its says.. > ocamlc.opt -ccopt "-I/usr/local/include -DHAVE_INLINE -g -O3" -c > mlgsl_vector_float.c > In file included from mlgsl_vector_float.c:4: > mlgsl_vector.c: In function `ml_gsl_vector_float_memcpy': > mlgsl_vector.c:13: syntax error before `v_b' > mlgsl_vector.c:13: `v_b' undeclared (first use in this function) > mlgsl_vector.c:13: (Each undeclared identifier is reported only once > mlgsl_vector.c:13: for each function it appears in.) > gmake: *** [mlgsl_vector_float.o] Error 2 > > How can i solve the problem? > > I have pkg_add gsl and gcc30 already Hum, yes you have gcc30 installed but was ocaml compiled with it ? try : ocamlc -verbose truc.c and see which compiler is used. If that's not gcc3, you should modify the Makefile so as to use the -cc switch of ocamlc. Anyway, I'll release (soon) a version that can be compiled with gcc 2.9x . -- Olivier ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners