Hi again Richy, Just wanted to ask if anyone's succeeded in building CLN on MinGW / MSYS ? Is this something that other people have shown an interest in? I get the following error when I try to ./configure && make:
g++ -g -O2 -I../include -I../include -I./base -Ibase -c ./base/random/cl_random_from.cc -DDLL_EXPORT -DPIC -o .libs/cl_random_from.o ./base/random/cl_random_from.cc: *In constructor `cln::random_state::random_state()':* ./base/random/cl_random_from.cc:68: *error: `::get_seed' has not been declared* make[3]: *** [cl_random_from.lo] Error 1
The problem could be as simple as needing to alter the #if stuff like (defined(_WIN32) && defined(__GNUC__)) -- I think that MinGW may use slightly different macros eg WIN32 in place of _WIN32. Or it could be more complex, I know that MinGW doesn't implement glibc so you might need more complicated #ifdefs and provide some aliases to MFC library calls. My experience with MinGW is that it runs a lot more quickly -- both compiling and then running the compiled code. The Cywin POSIX layer seems to slow things down quite a bit in computationally intensive stuff. Cheers JP -- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 mailto:john.pye_AT_student_DOT_unsw.edu.au http://pye.dyndns.org/
On Fri, Jul 29, 2005 at 04:38:16PM +1000, John Pye wrote:
Just wanted to ask if anyone's succeeded in building CLN on MinGW / MSYS ? Is this something that other people have shown an interest in?
I get the following error when I try to ./configure && make:
g++ -g -O2 -I../include -I../include -I./base -Ibase -c ./base/random/cl_random_from.cc -DDLL_EXPORT -DPIC -o .libs/cl_random_from.o ./base/random/cl_random_from.cc: *In constructor `cln::random_state::random_state()':* ./base/random/cl_random_from.cc:68: *error: `::get_seed' has not been declared* make[3]: *** [cl_random_from.lo] Error 1
Could you please post your $(top_builddir)/src/base/cl_base_config.h ?
The problem could be as simple as needing to alter the #if stuff like (defined(_WIN32) && defined(__GNUC__)) -- I think that MinGW may use slightly different macros eg WIN32 in place of _WIN32.
As a matter of fact, (defined(_WIN32) && (defined(__GNUC__))) assumes you are using Cygwin. Best regards, Alexei.
On Fri, Jul 29, 2005 at 04:38:16PM +1000, John Pye wrote:
Just wanted to ask if anyone's succeeded in building CLN on MinGW / MSYS ? Is this something that other people have shown an interest in?
I get the following error when I try to ./configure && make:
g++ -g -O2 -I../include -I../include -I./base -Ibase -c ./base/random/cl_random_from.cc -DDLL_EXPORT -DPIC -o .libs/cl_random_from.o ./base/random/cl_random_from.cc: *In constructor `cln::random_state::random_state()':* ./base/random/cl_random_from.cc:68: *error: `::get_seed' has not been declared* make[3]: *** [cl_random_from.lo] Error 1
Try using using attached patch. Note: the code compiles and no test seems to fail, but I'm not sure if my implementation of get_seed() is good enough. Best regards, Alexei
participants (2)
-
John Pye
-
varg@theor.jinr.ru