Perfect! Thanks. That did it. I use target.SetOptionRelation(ortLinkerOptions, 2);
Yes, I know. I was just do a quick test. I use the constant "orPrependToParentOptions" mentioned above. The final code is:
target.SetOptionRelation(ortLinkerOptions, orPrependToParentOptions);
target.AddLinkLib(_T("TheLib"));
Anyway, thanks again.