Skip to content

Compilation failed #5

Description

@cwliu007

Hello,

Thank you for providing the useful package. I failed to install the package and yielded the following message. My R version is 4.2.0.

  • installing source package 'apg' ...
    ** using staged installation
    ** libs
    g++ -std=gnu++11 -I"C:/PROGRA1/R/R-421.0/include" -DNDEBUG -I'C:/Users/cwliu/AppData/Local/R/win-library/4.2/Rcpp/include' -I'C:/Users/cwliu/AppData/Local/R/win-library/4.2/RcppArmadillo/include' -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o
    g++ -std=gnu++11 -I"C:/PROGRA1/R/R-421.0/include" -DNDEBUG -I'C:/Users/cwliu/AppData/Local/R/win-library/4.2/Rcpp/include' -I'C:/Users/cwliu/AppData/Local/R/win-library/4.2/RcppArmadillo/include' -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c grad_logistic.cpp -o grad_logistic.o
    g++ -std=gnu++11 -I"C:/PROGRA1/R/R-421.0/include" -DNDEBUG -I'C:/Users/cwliu/AppData/Local/R/win-library/4.2/Rcpp/include' -I'C:/Users/cwliu/AppData/Local/R/win-library/4.2/RcppArmadillo/include' -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c grad_ranking_logistic.cpp -o grad_ranking_logistic.o
    g++ -std=gnu++11 -shared -s -static-libgcc -o apg.dll tmp.def RcppExports.o grad_logistic.o grad_ranking_logistic.o -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib -LC:/PROGRA1/R/R-421.0/bin/x64 -lR
    C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: grad_logistic.o:grad_logistic.:(.text.hot+0x10d): undefined reference to dgemv_' C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: grad_logistic.o:grad_logistic.:(.text.hot+0x7ac): undefined reference to dgemm_'
    C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: grad_logistic.o:grad_logistic.:(.text.hot+0x88f): undefined reference to dgemv_' C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: grad_logistic.o:grad_logistic.:(.text.hot+0xc2e): undefined reference to dsyrk_'
    collect2.exe: error: ld returned 1 exit status
    no DLL was created
    ERROR: compilation failed for package 'apg'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions