trying to make a library "multiple definition of '#var'