This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: help me


Andy Falanga (afalanga) wrote:
Other than that, it's not clear if you're building for Windows or not.  It looks like, if GCC wasn't compiled for Windows support, it may not know how to handle the __declspec() syntax.  Look through the GCC docs for more info.

Andy
Additionally, you need to remove the static qualifier from both the prototype (so it doesn't search the library in the program instead of the dl) and in the library (defining as static prevents it to be exported), You will also have to provide a definition for MAP in your header (or at least a forward declaration),




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