0

I'm new to linux development, but have many years experience in Windows development. I'm trying to link a program using:

g++ -fPIC -shared $(OBJ_FILES) -o libMyLib.so

The odd thing is, this works. This is odd because there should be additional shared libraries I need to link in for this to be successful. So I was just trying to do this one step at a time and expected linker errors at this point, but saw none. What am I missing?

2
  • Thanks...this answers my question, but unfortunately I don't see a way to confirm this as a duplicate. Commented Jun 3, 2013 at 14:38
  • Well I'm glad it helped! Commented Jun 3, 2013 at 14:41

1 Answer 1

2

Unfulfilled dependencies that are to be met by shared libraries are linked in during runtime, not during compilation.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.