Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with compilation due to read_data.cpp #16

Open
yizhwan opened this issue Aug 25, 2022 · 3 comments
Open

Problems with compilation due to read_data.cpp #16

yizhwan opened this issue Aug 25, 2022 · 3 comments

Comments

@yizhwan
Copy link

yizhwan commented Aug 25, 2022

Hi,

I am trying to compile BSGLMM on an UBuntu 22.04 running CUDA 11.7. compute 8.6, RTX 3090 TI.

Steps taken are:
git clone to /opt/
Modify makefile to reflect compute 86 in gencode.
I then ran make, resulting in the following errors:

read_data.cpp: In function ‘int test_ext(const char*, const char*)’:
read_data.cpp:47:11: error: declaration of ‘char* ext’ shadows a parameter
47 | char ext = strdup(ext);
| ^~~
read_data.cpp:42:47: note: ‘const char
ext’ previously declared here
42 | int test_ext(const char img_name,const char ext)
| ~~~~~~~~~~~~^~~
read_data.cpp:49:40: error: ‘ext2’ was not declared in this scope; did you mean ‘ext’?
49 | ptr = (char )strstr(img_name2,ext2);
| ^~~~
| ext
read_data.cpp: In function ‘unsigned char
read_nifti1_image(unsigned char
, char
)’:
read_data.cpp:344:32: warning: too many arguments for format [-Wformat-extra-args]
344 | fprintf(stderr,".",img_nm);
| ^~~
make: *** [Makefile:158: read_data.o] Error 1

I have checked with the version on github and this is the most up to date version of the read_data.cpp file.

Please coulf I ask what steps I can do to resolve these errors?

Many thanks,

Yizhou

@tdjtdj
Copy link
Collaborator

tdjtdj commented Oct 11, 2022 via email

@yizhwan
Copy link
Author

yizhwan commented Nov 3, 2022

Hi Tim,

Unfortunately I don't think your new copy of read_data.cpp was attached to your previous message. I have made some modifications to the old copy of read_data.cpp and the coide now seems to work. I am happy to send it across if you would like?

Yizhou
[email protected]

@tdjtdj
Copy link
Collaborator

tdjtdj commented Nov 3, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants