2

My professor has given us a "mystery" function - p4test.o that needs to be called from our main().

How do I add this to my CLion project to be able to call it?

hashbyte
  • 121
  • 1
  • 4
  • 10

1 Answers1

0

If you don't have header files for the object files you need to reverse their exports and create the header file yourself. From that point on you can use them from your code and link the object files in later on.

Here is an answer that can tell you how to do this: How do i find out what all symbols are exported from a shared object?

Karara Mohamed
  • 923
  • 1
  • 6
  • 19