This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Mingw32 and JNI


> I'm having trouble(more trouble I should say) with the java JNI headers
> and Mingw32. It's all centered around something(a function, I think)
> called "__declspec". I have a stinking suspicion it's a VC++ name that
> should be "__attribute__" for GCC, but I don't know what "__attribute"
> is, either. Pleaseohpleaseohplease help...

If it's __declspec(dllexport), try __attribute__((dllexport)). If it's
__declspec(dllimport), try __attribute__((dllimport)). If it's
something else, let us know what it is.

Regards,
Martin

P.S. Please don't send HTML mails, thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]