From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emmanuel Chomarat To: Jose Miguel Buenaposada Cc: gsl-discuss@sources.redhat.com Subject: Re[2]: compile pb Date: Wed, 19 Dec 2001 13:20:00 -0000 Message-id: <11113893960.20010805210249@bigfoot.com> References: <5288446980.20010803215222@bigfoot.com> <3B6BC9C5.53755203@dcs.qmw.ac.uk> <105143841863.20010804131537@bigfoot.com> <3B6BECD7.AB35D124@dcs.qmw.ac.uk> X-SW-Source: 2001/msg00372.html Hello Jose, I tried yours advises on the rng subdirs. Good news, the compile works good and i succeeded in the creation of a mini lib as you explain me. But know i have a problem, when i try to create an app and to link this lib the compiler fails. The reason is the following lines: gsl_rng_type * T; gsl_rng_env_setup() ; T = gsl_rng_default; But when i'm looking in the i saw const gsl_rng_type ** gsl_rng_types_setup(void); extern const gsl_rng_type *gsl_rng_default; The compiler gives me the message : Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland app.cpp: Error E2034 app.cpp 8: Cannot convert 'const gsl_rng_type *' to 'gsl_rng_type *' in function main() *** 1 errors in Compile *** I m not an expert in const pointer, but does any1 can explain me this error. in fact i tried many other modules and it is nearly the only error i encountered. Saturday, August 04, 2001, 2:38:48 PM, you wrote: JMB> Emmanuel Chomarat wrote: >> Saturday, August 04, 2001, 12:09:09 PM, you wrote: >> >> JMB> Emmanuel Chomarat wrote: >> >> >> Can any1 help me to compile GSL, or give some way to investigate in >> >> the compilation. In the dist you use automake that is a great >> >> product under unix like system, but i'm not sur that this format is >> >> human easy understandable. I'have some problems to make a makefile >> >> that will be good with borland c++, and i don't know how to generate >> >> makefile(except with cygwin but i think it contains some >> >> POSIX particularities that i don't have under borland) . >> >> JMB> Hello, I started to make the MSVC projects looking into the Makefile.am files. >> >> JMB> And yes those files are human readables ... >> >> JMB> I can give you some hints in order to proceed: >> >> JMB> - First you have to look into the gsl sources root Makefile.am >> JMB> The SUBDIRS variable give you the subdirs to be processed and the order >> JMB> (from left to right). >> JMB> So in every Makefile.am file you can find a SUBDIRS variable or not (in >> JMB> which case you are in >> JMB> a leaf dir). >> >> JMB> - GSL is built from leafs to root directory and in every leaf dir is built a >> JMB> pseudo library, >> JMB> and all this leaf libraries are linked together in the root dir (or in gsl >> JMB> dir I can not remember >> JMB> now). >> >> JMB> - In every Makefile.am in a leaf dir for building a test program you have >> JMB> something like: >> >> JMB> bin_PROGRAMS= program1 >> >> JMB> program1_SOURCES= source1.c source1.h source2.c source2.h >> JMB> program1_LDADD=-llibrary1 -llibrary2 >> >> JMB> So you can just follow more or less the Makefile.am files in order to now how >> JMB> to proceed. >> >> JMB> On the other hand you can just follow the structure of the Visual C++ projects >> JMB> files and >> JMB> use it to construct the borland c++ projects files and then export them to >> JMB> makefiles (is >> JMB> this possible?). >> >> JMB> I hope to be of any help and not to confuse you more ;-). >> >> JMB> Jose Miguel. >> >> JMB> -- >> JMB> ------------------------------------------------------------------- >> JMB> Jose Miguel Buenaposada Biencinto >> JMB> Facultad de Informática | Computer Science School >> JMB> Universidad Politécnica de Madrid (UPM) | Madrid Tech. University. >> JMB> Campus de Montegancedo s/n >> JMB> 28660 Boadilla del Monte, Madrid (ESPAÑA)| (SPAIN) >> JMB> Voice +34 91 336 69 47 >> JMB> Fax +34 91 352 48 19 >> JMB> e-mail: jmbuena@dia.fi.upm.es >> JMB> web : http://www.dia.fi.upm.es/~jmbuena >> JMB> ------------------------------------------------------------------- >> JMB> Yo soy Precario FPU, ¿ y tu ?: http://www.precarios.org >> >> -- >> Best regards, >> Emmanuel mailto:Emmanuel.Chomarat@bigfoot.com JMB> -- JMB> ------------------------------------------------------------------- JMB> Jose Miguel Buenaposada Biencinto JMB> Facultad de Informática | Computer Science School JMB> Universidad Politécnica de Madrid (UPM) | Madrid Tech. University. JMB> Campus de Montegancedo s/n JMB> 28660 Boadilla del Monte, Madrid (ESPAÑA)| (SPAIN) JMB> Voice +34 91 336 69 47 JMB> Fax +34 91 352 48 19 JMB> e-mail: jmbuena@dia.fi.upm.es JMB> web : http://www.dia.fi.upm.es/~jmbuena JMB> ------------------------------------------------------------------- JMB> Yo soy Precario FPU, ¿ y tu ?: http://www.precarios.org -- Best regards, Emmanuel mailto:Emmanuel.Chomarat@bigfoot.com