Hi all,
I'm using MSVC on XP and I've a problem with gsl_rng_set. When I use this function, my program compiles and links correctly but fails at execution. Here is my code :
CvRNG rng_state = cvRNG(0xffffffff); gsl_rng_env_setup(); gsl_rng_set( rng, time(NULL) ); rng = gsl_rng_alloc( gsl_rng_mt19937 );
I already has a problem with gsl_rng_mt19937. When compiling I got "unresolved external" but solved it using GSL_DLL in the preprocessor definition.
I tried also to re-order lines like that: CvRNG rng_state = cvRNG(0xffffffff); gsl_rng_env_setup(); rng = gsl_rng_alloc( gsl_rng_mt19937 ); gsl_rng_set( rng, time(NULL) );
but it failed too...
Can someone help me ? Thanks.
-Fadi
楼主,I have the same problem too. how do you solve it? thanks and sorry for my english
Hi all,
I'm using MSVC on XP and I've a problem with gsl_rng_set. When I use this function, my program compiles and links correctly but fails at execution. Here is my code :
CvRNG rng_state = cvRNG(0xffffffff);
gsl_rng_env_setup();
gsl_rng_set( rng, time(NULL) );
rng = gsl_rng_alloc( gsl_rng_mt19937 );
I already has a problem with gsl_rng_mt19937. When compiling I got "unresolved external" but solved it using GSL_DLL in the preprocessor definition.
I tried also to re-order lines like that:
CvRNG rng_state = cvRNG(0xffffffff);
gsl_rng_env_setup();
rng = gsl_rng_alloc( gsl_rng_mt19937 );
gsl_rng_set( rng, time(NULL) );
but it failed too...
Can someone help me ?
Thanks.
-Fadi
楼主,I have the same problem too. how do you solve it? thanks and sorry for my
english