At 09:40 PM 8/17/2004, Yu-Cheng Chou wrote:
>Hi, there:
>
>I installed lam-mpi under cygwin environment. Now I'd like to use VC++ to
>create an executable file, which implies I need to link the lam-mpi
>library. But the library contains xxx.a and xxx.la files, which are for
>the unix/linux system. So, what should I do to successfully create an
>executable file using VC++?
Cygwin .a files should work the same as 32-bit Windows .lib files. If you
are using a 64-bit Windows, you would need to extract the .o files from a
cygwin .a file (not a Unix or linux .a file) and use lib to build a 64-bit
library. I'm not certain it makes sense to use VC++; why not use g++
? If your code is so non-standard that g++ won't take it, you may have
other problems.
Tim Prince
|