从Makefile生成lib并在vc ++中使用库 [英] To generate lib from Makefile and using the library in vc++

查看:82
本文介绍了从Makefile生成lib并在vc ++中使用库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经下载了SNMP ++.下载的文件夹中包含一个make文件.我的问题是如何在Visual Studio中编译此Makefile.可能吗?我想从此make文件中获取.lib.有可能吗?如果是这样,怎么办?请帮帮我.

谢谢,
Laje

Hi,

I have downloaded the SNMP++. And the dowloaded folder includes a make file. My question is How to compile this makefile in visual studio. Is it possible? I would like to have .lib from this make file. Is it posiible? if so , how? please help me.

Thanks,
Laje

推荐答案

由于Visual Studio包含名为 MinGW [ SNMP ++下载站点 [
It may be that you can use the makefile, since Visual Studio contains a utility called nmake[^]. However, whether it works or not will depend on whether the makefile has been set up for nmake. If it hasn''t then you need to add commands to the makefile for nmake. That would need a reasonable amount of knowledge and a fair bit of reading up.

Your second option is to use something like MinGW[^] which includes a gcc compiler that can make Windows library files. Not difficult but still a few hours of work at least.

However, the SNMP++ download site[^] contains MS VC++ 7.0 project files for download. I suggest that this would be far the easiest way


这篇关于从Makefile生成lib并在vc ++中使用库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆