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

I bought a class. I have a header ( .h ) and a file object ( .o ). How to link .o file in my NetBeans IDE?

Thanks!

+4
source share
1 answer

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

  • Go to Project Properties
  • In the Build->Linker add the library to the "Libraries" section
  • Click "Add Library File"
  • Browse to the .o file and select the absolute path option
  • Rebuild

Hope this works for you too.

+7
source

Source: https://habr.com/ru/post/1335178/


All Articles