开发者

C++ NetBeans: How to link my .o file to my project?

I've bought a class. I have the header (.开发者_如何转开发h) and an object-file (.o). How do I link the .o file in my NetBeans IDE ?

Thanks!


You need to add your .o file as an external library. I was able to accomplish this using the following steps:

  1. Go to Project Properties
  2. Under the Build->Linker options, add a library to the Libraries section
  3. Click 'Add Library File'
  4. Navigate to your .o file and select the absolute path option
  5. Rebuild

Hopefully this will work for you also.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜