Node-gyp Include and Library Directories with Boost

后端 未结 1 602
轻奢々
轻奢々 2021-02-06 00:03

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


        
相关标签:
1条回答
  • 2021-02-06 00:51

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

    'include_dirs': [
      '<some directory>',
    ],
    'libraries': [
      '-l<some library>', '-L<some library directory>'
    ]
    
    0 讨论(0)
提交回复
热议问题