Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Stata plugins for 64-bit machines


From   "Julian Reif" <julian.reif@bateswhite.com>
To   "Statalist \(E-mail\)" <statalist@hsphsun2.harvard.edu>
Subject   st: Stata plugins for 64-bit machines
Date   Fri, 29 Sep 2006 09:04:19 -0400

Hi,

I wrote several Stata plugins for 32-bit Windows 2000 a while ago.  In order to compile them, I downloaded Cygwin with gcc and followed the instructions given on Stata's website (http://www.stata.com/plugins/#5a).  I recently acquired a 64-bit AMD machine.  It is running an updated version of Stata 9.2 on Windows XP but it cannot run my old plugins (I get the error message "plugin failed to load" in Stata).  I was advised to add the flag -m64- to the gcc compile command and recompile the plugins.  Here is an example of my new gcc compile command for a plugin called "renamefile":

	gcc -m64 -shared -mno-cygwin stplugin.c _renamefile.c -o ../../_renamefile.dll

Unfortunately, compiling this command in gcc yields a compilation error:

	stplugin.c:1: sorry, unimplemented: 64-bit mode not compiled in

Has anybody here successfully compiled 64-bit Stata plugins for gcc under Cygwin?  What am I missing?  Thanks.

Julian Reif

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index