IonicWind Software

IWBasic => General Questions => Topic started by: LarryMc on January 08, 2008, 01:10:16 PM

Title: Static Lib Problem
Post by: LarryMc on January 08, 2008, 01:10:16 PM
I've built my static lib and then tried to link it with my test program.
I get these "Unresolved extern" errors for my 4 functions.
QuoteCompiling...
gage4_test.eba
No Errors

Linking...
Emergence Linker v1.11 Copyright ÂÃ,© 2006 Ionic Wind Software
Unresolved external __imp_AddGageRLM
Error: Unresolved extern __imp_AddGageRLM
Error: Unresolved extern __imp_SetGageDialDarkRLM
Error: Unresolved extern __imp_SetGagePosRLM
Error(s) in linking C:\_EBDev\projects\Gauges\gage4_test.exe
I've had these errors before but I can't remember what caused them.
Obviously my functions are named without the "__imp_".
My brain has gone totally blank.

Larry
Title: Re: Static Lib Problem
Post by: Ionic Wind Support Team on January 08, 2008, 02:23:19 PM
My guess is you used DECLARE instead of DECLARE EXTERN in an include file somewhere.  The first references import library (DLL's) and the second static library/object functions.

Paul.
Title: Re: Static Lib Problem
Post by: LarryMc on January 08, 2008, 02:43:55 PM
I tried all of that in as many different ways as I could. 
Then all of the sudden it started working with it set up like one of the ways I had tried earlier.

It's obvious I was doing something wrong and it works now but I have no idea what I was doing wrong.

Story of my live.

Thanks for the input Paul.

Larry