4

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!

templatetypedef
  • 362,284
  • 104
  • 897
  • 1,065
NetBeaner
  • 43
  • 1
  • 3

1 Answers1

7

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.

JaredC
  • 5,150
  • 1
  • 20
  • 45