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

errors in RDevel undefined reference #224

Open
spedygiorgio opened this issue Oct 9, 2024 · 0 comments
Open

errors in RDevel undefined reference #224

spedygiorgio opened this issue Oct 9, 2024 · 0 comments
Labels

Comments

@spedygiorgio
Copy link
Owner

  • installing source package 'markovchain' ...
    ** using staged installation
    ** libs
    using C++ compiler: 'g++.exe (GCC) 13.2.0'
    g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppParallel/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -DRCPP_PARALLEL_USE_TBB=1 -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o
    g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppParallel/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -DRCPP_PARALLEL_USE_TBB=1 -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c classesAndMethods.cpp -o classesAndMethods.o
    g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppParallel/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -DRCPP_PARALLEL_USE_TBB=1 -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c ctmcClassesAndMethods.cpp -o ctmcClassesAndMethods.o
    g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppParallel/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -DRCPP_PARALLEL_USE_TBB=1 -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c ctmcFittingFunctions.cpp -o ctmcFittingFunctions.o
    g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppParallel/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -DRCPP_PARALLEL_USE_TBB=1 -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c ctmcProbabilistic.cpp -o ctmcProbabilistic.o
    g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppParallel/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -DRCPP_PARALLEL_USE_TBB=1 -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c fitHigherOrder.cpp -o fitHigherOrder.o
    g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppParallel/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -DRCPP_PARALLEL_USE_TBB=1 -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c fittingFunctions.cpp -o fittingFunctions.o
    g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppParallel/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -DRCPP_PARALLEL_USE_TBB=1 -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c multinomCI.cpp -o multinomCI.o
    g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppParallel/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -DRCPP_PARALLEL_USE_TBB=1 -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c probabilistic.cpp -o probabilistic.o
    g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppParallel/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -DRCPP_PARALLEL_USE_TBB=1 -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c utils.cpp -o utils.o
    g++ -std=gnu++17 -shared -s -static-libgcc -o markovchain.dll tmp.def RcppExports.o classesAndMethods.o ctmcClassesAndMethods.o ctmcFittingFunctions.o ctmcProbabilistic.o fitHigherOrder.o fittingFunctions.o multinomCI.o probabilistic.o utils.o -LD:/RCompile/recent/R/bin/x64 -lRlapack -LD:/RCompile/recent/R/bin/x64 -lRblas -lgfortran -lm -lquadmath -LD:/RCompile/CRANpkg/lib/4.5/RcppParallel/lib/x64 -ltbb -ltbbmalloc -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R/bin/x64 -lR
    D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: RcppExports.o:RcppExports.cp:(.text+0x59ae): undefined reference to mcListFitForList(Rcpp::Vector<19, Rcpp::PreserveStorage>)' D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: RcppExports.o:RcppExports.cp:(.text+0x7b75): undefined reference to inferHyperparam(Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<16, Rcpp::PreserveStorage>)'
    D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: RcppExports.o:RcppExports.cp:(.text+0x8c90): undefined reference to createSequenceMatrix(SEXPREC*, bool, bool, Rcpp::Vector<16, Rcpp::PreserveStorage>)' D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: RcppExports.o:RcppExports.cp:(.text+0xa30c): undefined reference to _matr2Mc(Rcpp::Matrix<16, Rcpp::PreserveStorage>, double, bool, Rcpp::Vector<16, Rcpp::PreserveStorage>)'
    D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: RcppExports.o:RcppExports.cp:(.text+0xa759): undefined reference to _list2Mc(Rcpp::Vector<19, Rcpp::PreserveStorage>, double, bool)' D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: RcppExports.o:RcppExports.cp:(.text+0xbc4d): undefined reference to markovchainSequenceRcpp(int, Rcpp::S4_ImplRcpp::PreserveStorage, Rcpp::Vector<16, Rcpp::PreserveStorage>, bool)'
    D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: RcppExports.o:RcppExports.cp:(.text+0xbfd1): undefined reference to markovchainListRcpp(int, Rcpp::Vector<19, Rcpp::PreserveStorage>, bool, Rcpp::Vector<16, Rcpp::PreserveStorage>)' D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: RcppExports.o:RcppExports.cp:(.text+0xc361): undefined reference to markovchainSequenceParallelRcpp(Rcpp::S4_ImplRcpp::PreserveStorage, int, bool, Rcpp::Vector<16, Rcpp::PreserveStorage>)'
    D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: RcppExports.o:RcppExports.cp:(.text+0xc7ce): undefined reference to markovchainFit(SEXPREC*, Rcpp::String, bool, int, double, Rcpp::String, bool, double, bool, Rcpp::Matrix<14, Rcpp::PreserveStorage>, bool, Rcpp::Vector<16, Rcpp::PreserveStorage>)' D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: RcppExports.o:RcppExports.cp:(.text+0xcb73): undefined reference to noofVisitsDistRCpp(Rcpp::Matrix<14, Rcpp::PreserveStorage>, int, int)'
    D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: ctmcFittingFunctions.o:ctmcFittingFunctions.cpp:(.text+0x2a77): undefined reference to markovchainFit(SEXPREC*, Rcpp::String, bool, int, double, Rcpp::String, bool, double, bool, Rcpp::Matrix<14, Rcpp::PreserveStorage>, bool, Rcpp::Vector<16, Rcpp::PreserveStorage>)' D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: probabilistic.o:probabilistic.:(.text+0x801f): undefined reference to Rcpp::Matrix<14, Rcpp::PreserveStorage> sortByDimNames<Rcpp::Matrix<14, Rcpp::PreserveStorage> >(Rcpp::Matrix<14, Rcpp::PreserveStorage>)'
    D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: probabilistic.o:probabilistic.:(.text+0x9e7e): undefined reference to Rcpp::Matrix<14, Rcpp::PreserveStorage> sortByDimNames<Rcpp::Matrix<14, Rcpp::PreserveStorage> >(Rcpp::Matrix<14, Rcpp::PreserveStorage>)' D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: probabilistic.o:probabilistic.:(.text+0x9ec4): undefined reference to Rcpp::Matrix<14, Rcpp::PreserveStorage> sortByDimNames<Rcpp::Matrix<14, Rcpp::PreserveStorage> >(Rcpp::Matrix<14, Rcpp::PreserveStorage>)'
    collect2.exe: error: ld returned 1 exit status
    no DLL was created
    ERROR: compilation failed for package 'markovchain'
  • removing 'd:/RCompile/CRANguest/R-devel/lib/markovchain'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant