Fix undeclared variable
Merge pull request #1546 from GPCsolutions/linkfix

Fix undeclared variable