Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

problems in R #27

Open
JintaoSHOU opened this issue Dec 4, 2017 · 4 comments
Open

problems in R #27

JintaoSHOU opened this issue Dec 4, 2017 · 4 comments

Comments

@JintaoSHOU
Copy link

Hi, James.
I am studying your spatiotemporal model lecture, when I compile the cpp file, the console of R has the following message
Error in compile("linear_model_v1.cpp") : Compilation failed
In addition: Warning message:
running command 'make -f "C:/PROGRA1/R/R-341.3/etc/x64/Makeconf" -f "C:/PROGRA1/R/R-341.3/share/make/winshlib.mk" -f "C:\Users\ADMINI~1\AppData\Local\Temp\Rtmp6DPT2d\file333c7d717945" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="linear_model_v1.dll" WIN=64 TCLBIN=64 OBJECTS="linear_model_v1.o"' had status 127

I don't know why, looking forward your reply, thanks.

Jintao

@James-Thorson
Copy link
Contributor

Status 127 indicates that TMB is not working, likely due to Rtools not being installed properly. Please see https://github.com/nwfsc-assess/geostatistical_delta-GLMM/wiki/Steps-to-install-TMB, and either respond with an update or close the issue if that fixes it.

@JintaoSHOU
Copy link
Author

Thanks for you reply, I solved this problem, but i got a new error

C:\Rtools\mingw_64\bin\nm.exe: linear_model_v1.o: File format not recognized
c:/Rtools/mingw_64/bin/g++ -shared -s -static-libgcc -o linear_model_v1.dll tmp.def linear_model_v1.o -LC:/PROGRA1/R/R-341.3/bin/x64 -lR
linear_model_v1.o: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status
[1] 0
Thanks again

Jintao

@James-Thorson
Copy link
Contributor

Did you confirm that TMB was working in the previous URL link?

@JintaoSHOU
Copy link
Author

Yes, I got the 313.4137. I think I found the reason, I need more time to confirm. Thank you, James

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

No branches or pull requests

2 participants