Friday, May 10, 2013

How to link .o file to your c or c++ project using Netbeans !


You need to add your .o file as an external library. So just follow 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. Clean and Rebuild
And it's done.

No comments:

Post a Comment