[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Stata plugins for 64-bit machines
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.
* For searches and help try: