Import global variable from static lib?

Just starting out? Need help? Post your questions and find answers here.
Justin
Addict
Addict
Posts: 956
Joined: Sat Apr 26, 2003 2:49 pm

Import global variable from static lib?

Post by Justin »

If a C static library declares a variable like this:

Code: Select all

extern void* foo;
Can be imported by PB?, this does not seem to work but i remember some code doing something similar

Code: Select all

ImportC "lib.a"
	foo.i
endimport
debug foo ;linker error