June 27, 2024, 03:15:45 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Static Lib Problem

Started by LarryMc, January 08, 2008, 01:10:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LarryMc

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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Ionic Wind Support Team

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.
Ionic Wind Support Team

LarryMc

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

LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library