开发者

Autoconf for Visual C++

开发者 https://www.devze.com 2023-01-16 22:50 出处:网络
I want to build XZ Utils with MSVC++, but xz utils uses a Gnu Autoconf Script. Is there a way to import a whole autoconfed project into MSVC++, then build it? If not, is there a way to run the Gnu Aut

I want to build XZ Utils with MSVC++, but xz utils uses a Gnu Autoconf Script. Is there a way to import a whole autoconfed project into MSVC++, then build it? If not, is there a way to run the Gnu Autoconf script for MSVC++, then after that, just take all the source files, as well as config.h, then b开发者_开发知识库uild it?


FYI XZutils is written in C99 and will not compile under MSVC without massive changes. Just build in MINGW and link to the static lib or dll.


As far as I know, not really. You could try installing MSYS and seeing what the support for cl.exe is like in the configure script:

./configure CC=c:/path/to/cl.exe CXX=c:/path/to/cl.exe

Last time I checked, the support was rather immature, but it could be worth a shot. On the other hand, since xz-utils is written in straight C, what does it matter which compiler you use? Build it with MinGW and link against it with visual studio.

0

精彩评论

暂无评论...
验证码 换一张
取 消