Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4185297
By: fadichakik

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



______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to