How to include .o object file without .c source in project?

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How do I include an object file .o - compiled by somebody else into my project. I have a .h file with a function prototype for the function inside the .o file I am calling. My question is how do I get the .o file linked into my project without touching the make file?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just add it to the list of link objects. Perhaps the easiest way to achieve that is under Miscellaneous in the Linker options. There's a free format text edit there - just add the names of the .o files to it.