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

Re: compiling with visual studio


On 07/01/2011 09:22 AM, Kraus Philipp wrote:
Hello,

I'm new with cygwin and hope my question is not off topic. I try to port a C++ framwork to Windows. The framework uses Atlas and LAPack, libxml (with libiconv and zlib) and GiNaC with CLN. Some libs like zlib can I build with the Visual Studio nmake command, but other can be build with configure, make, make install only.

I have setup the Cygwin.bat with Visual Studio (the Atlas developer describe this on http://math-atlas.sourceforge.net/errata.html#WinComp) but do I understand it in a correct way, that after setting the environmental variables, I can use the VS compiler under Cygwin? I have installed the gcc, g++, gfortran and make tools under Cygwin and can compile my libraries, but the configure script determine the ld linker. If I have compiled a library under cygwin, can I link the binary in Visual Studio?

Thanks


If you want to link gnu compiled objects under Visual Studio, the mingw cross compilers would be more suitable than the cygwin compiler. This quickly gets off topic. If you want to use standard Makefiles, gnu make (including, but not restricted to, the cygwin one) is a better bet than nmake. There's no law against using mingw or even CL with gnu make.

--
Tim Prince


-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple


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