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->Linker
options, add a library to the Libraries section - Click 'Add Library File'
- Navigate to your
.o
file and select theabsolute path
option - Rebuild
Hopefully this will work for you also.
精彩评论