节点石膏和库目录与升压 [英] Node-gyp Include and Library Directories with Boost

查看:112
本文介绍了节点石膏和库目录与升压的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立我的Windows 7机器上的一个节点C ++的插件,使用一些类从Boost库。但是,运行后

I'm attempting to build a Node C++ addon on my Windows 7 machine that uses some classes from the Boost libraries. However, after running

node-gyp configure

成功,我不断丢失的头文件,当我运行攻击

successfully, I'm continually assaulted by missing header files when I run

node-gyp build

与各种Boost头我在内。

relating to various Boost headers I included.

我试着设置了包括手动库目录由创建的Visual Studio项目配置,但无济于事。

I tried setting up the include and library directories manually in the Visual Studio projects created by "configure," but to no avail.

究竟要如何去有关定义包括节点石膏目录?

How exactly does one go about defining include directories for node-gyp?


淋巴结石膏收效甚微乱搞后,我将探讨通过Visual Studio构建节点模块,而不是和,原来,几个小时后,它终于和工作。感谢您的帮助。

After messing around with node-gyp with little success, I explored into building Node modules through Visual Studio instead and, turns out, after several hours, it's finally up and working. Thanks for the assistance.

推荐答案

您需要添加他们在binding.gyp文件:

You need to add them in the binding.gyp file:

'include_dirs': [
  '<some directory>',
],
'libraries': [
  '-l<some library>', '-L<some library directory>'
]

这篇关于节点石膏和库目录与升压的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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