I've got a static library, a dynamic library, and a main program. In the main program, I define an int variable called gotoOption. In the main() function I initialize the value of gotoOption. In my dynamic library, I declare 'extern int gotoOption;" at the top but when I refer to it later on in a function it has a value of zero even though I initialized it to another value.
Anyone know what I'm doing wrong?