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: Using Microsoft Visual C


David Most <dmost@ascend.com> writes:
> I'm working on a project which is a mix of UNIX and Windows.  A large
> portion of the base-code is ANSI/UNIX, with the edges (GUI & audio i/o) in
> Win32.
> 
> I would like to get migrate the project from cygwin/gcc to MSVC.  Ideally,
> I'd simply point the compiler at the cygwin unix headers and link to the
> cygwin DLL.  Has anyone attempted this with success?  Do you have any tips
> for me?  Am I on the right track (not referring to the migration towards
> windows <g>)?

You may be able to do this, but may run into problems with the linking
to libcygwin.a, which is not quite compatible to what MSVC linker expects.
In the future, when GNU as/ld is completely PE compatible, it should work
in theory. If you want to experiment, I suggest rebuilding the import
library using LIB.EXE (or whatever MSVC uses), add back the static archive
objects into the import library and see how things go.

I doubt if anyone's tried this yet, so it's up to you.

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]