[mpich-discuss] Error relating compiling a program (sprng.h)?

Rajeev Thakur thakur at mcs.anl.gov
Fri Feb 19 09:49:15 CST 2010


Try adding a #define SIMPLE_SPRNG before #include <sprng.h>. Also move
the #define USE_MPI to before #include <sprng.h>

Rajeev


________________________________

	From: mpich-discuss-bounces at mcs.anl.gov
[mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of ESMAEILI AMIN
	Sent: Friday, February 19, 2010 7:34 AM
	To: mpich-discuss at mcs.anl.gov
	Subject: [mpich-discuss] Error relating compiling a program
(sprng.h)?
	
	
	Dear Sir
	
	Hi
	Many thanks for your MPI package.
	I`ve installed the MPICH2 on my pc and made mpd.conf at HOME
directory
	
	But when I compile the program:
	amin at linux-usdz:~/Desktop/AminLinx> mpicc monte.c
	
	I will get this error:
	monte.c:9:19: error: sprng.h:
	monte.c: In function 'main':

	monte.c:40: error: 'SPRNG_DEFAULT' undeclared (first use in this
function)
	monte.c:40: error: (Each undeclared identifier is reported only
once      
	monte.c:40: error: for each function it appears in.)
	monte.c:40: warning: assignment makes pointer from integer
without a cast
	amin at linux-usdz:~/Desktop/AminLinx> ..
	amin at linux-usdz:~/Desktop> ..
	amin at linux-usdz:~> cd Desktop/AminLinx/
	amin at linux-usdz:~/Desktop/AminLinx> mpirun monte.c
	problem with execution of monte.c  on  linux-usdz:  [Errno 2] No
such file or directory
	
	
	Plz help me to compile and run the program correctly.
	
	I`ve attched the program for your inform.
	
	Best Regards
	Sincerely
	Amin
	
	
	




More information about the mpich-discuss mailing list