c++ - Run in R system ('g++ ...') got error 217 -


i trying compile .cpp file created else in r on windows computer running following code:

system("g++ c:\\users\\uos\\documents\\r\\win-library\\3.2\\timeshift\\data\\dtw.cpp -o c:\\users\\uos\\documents\\r\\win-library\\3.2\\timeshift\\data\\dtw") 

and

error code 217

i have tried following solutions:

  1. use system2 instead of system

  2. use

    setwd(c:\\users\\uos\\documents\\r\\win-library\\3.2\\timeshift\\data) system2('g++ dtw.cpp -o dtw') 

and both give me

error 217

i have checked path dtw , correct installing rcpp package. had on dtw.cpp file , seems ok. not know else do.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -