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:
- Go to Project Properties
- Under the
Build->Linkeroptions, add a library to the Libraries section - Click 'Add Library File'
- Navigate to your
.ofile and select theabsolute pathoption - Rebuild
Hopefully this will work for you also.
加载中,请稍侯......
精彩评论