This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

Re: [Fwd: DLL]


"vandana yesoda" <vandana.yesoda@wipro.com> writes:
> 
> A DLL(with MFC) is created using Microsoft Visual Studio's VC++. How to
> link this DLL to create an exe. using the GNU GCC compiler.

The issue of MFC and GCC has been discussed here many many times, and
the answer is still no. 

Unless someone can build MFC *with* GCC, the answer will remain "no".

> How to create .def file from the obj files which is created by VC++?

  $ dlltool --output-def foo.def foo.obj [foo2.obj foo3.obj ...]

will export the symbols that were explicitly exported; if you want to
export all symbols:

  $ dlltool --export-all --output-def foo.def foo.obj [...]

> When a .def file is created using dlltool --output-def , the symbols in
> the .def file is not recognized by dlltool when used to create the .exp,
> .a , .dll files.
> 
> how to work with GCC along with VC++.

Don't know what you mean, sorry. You'll have to help us understand by 
providing more information. I assume the issue of leading underscore
(or the lack thereof).

> Is all WIN API's are supported ? ( CreateEvent, CreateThread,
> ResumeThread etc.)

All of Win32 API is supported, yes. There are missing pieces, but that's a
function of the headers/import libraries, and easily fixed. There are some
issues that are thorny, and won't work -- Structured Exception Handling
(SEH) is one of those.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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