<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div>John and Dirk:</div><div>Thanks for your help. I've taken up the issue the Win-64 bit DLL with NREL development team.</div><div>thanks</div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> On Tuesday, September 23, 2014 4:02 PM, John Buonagurio <jbuonagurio@exponent.com> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container">> -----Original Message-----<br>> From: <a ymailto="mailto:rcpp-devel-bounces@lists.r-forge.r-project.org"
 href="mailto:rcpp-devel-bounces@lists.r-forge.r-project.org">rcpp-devel-bounces@lists.r-forge.r-project.org</a> [mailto:rcpp-devel-<br>> <a ymailto="mailto:bounces@lists.r-forge.r-project.org" href="mailto:bounces@lists.r-forge.r-project.org">bounces@lists.r-forge.r-project.org</a>] On Behalf Of Dirk Eddelbuettel<br>> Sent: Tuesday, September 23, 2014 3:39 PM<br>> To: Kumar Aiyer<br>> Cc: <a ymailto="mailto:rcpp-devel@lists.r-forge.r-project.org" href="mailto:rcpp-devel@lists.r-forge.r-project.org">rcpp-devel@lists.r-forge.r-project.org</a><br>> Subject: Re: [Rcpp-devel] Need Help: debugging Rcpp with gdb on Windows 8<br>> <br>> <br>> On 23 September 2014 at 12:14, Kumar Aiyer wrote:<br>> | Hi John:<br>> | Thanks for the info. I have not checked if it works in vanilla MingW.<br>> | Doing that today. However here is the summary from the user guide<br>> | which clearly states it has been tested.  The problem may be
 with the 64bit<br>> libraries.<br>>   ^^^^^^^^^^^^^^^^^^^^^^^^^^<br><br>Confirmed, seems to be a problem linking to the 64-bit DLLs. It works when building with g++ -m32 and running in 32-bit R. As Dirk suggests, just don't expect trouble-free operation between Rcpp and MSVC code. Since the API is simple enough, I'd personally use the old-fashioned R SEXP API in this case.<br><br>g++ -m32 -I"C:/R/R-3.1.1/include" -I"C:/R/R-3.1.1/library/Rcpp/include" -I"C:/SAM/ssc-sdk-2014-1-21" -c RcppSSC.cpp -o RcppSSC.o<br>g++ -m32 -shared -s -static-libgcc -L"C:/R/R-3.1.1/bin/i386" -L"C:/SAM/ssc-sdk-2014-1-21/win32" -o RcppSSC.dll RcppSSC.o -lssc -lR<br><br>> library(Rcpp)<br>> dyn.load("RcppSSC.dll")<br>> ssc.module <- Module("RcppSSC", PACKAGE="RcppSSC")<br>> ssc <- ssc.module$RcppSSC<br>> s <- new(ssc, "pvwattsv1")<br>s$exec()<br>Log Notice: precheck input: variable 'file_name' required but not assigned time -1<br>[1]
 FALSE<br><br><br>> <br>> In the context of the SSC library, maybe.<br>> <br>> Note that the example below uses C language code (and there is a reason)<br>> <br>> But what you are overlooking is that in general you CANNOT mix code from<br>> Visual Studio and MinGW for purposes of Rcpp -- and in general you CANNOT<br>> mix<br>> C++ code from different compilers.  So unless you get the source code<br>> C++ for SSC<br>> and learn how to build an Rcpp package __from sources__ ie without an<br>> external library you will be out of luck.<br>> <br>> This is all stated in the Rcpp-FAQ.<br>> <br>> Dirk<br>> <br><br><br></div>  </div> </div>  </div> </div></body></html>