October 31, 2025, 08:06:28 AM

News:

IWBasic runs in Windows 11!


Problem with my linker

Started by REDEBOLT, March 26, 2009, 02:26:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

REDEBOLT

I have been coding merrily along, with no problems, and suddenly, this happens:

$MAIN
$INCLUDE "clsMAT.inc"
$INCLUDE "waitkey$.inc"
DECLARE IMPORT, GETTICKCOUNT(),UINT


Compiling...
Table7-2.eba
clsMAT.eba
gausjord.eba
File: R:\EBDev\projects\BOB\Applied Linear Regression\Table7-2\gausjord.eba (74) Warning: Uninitialized variable: MCol
File: R:\EBDev\projects\BOB\Applied Linear Regression\Table7-2\gausjord.eba (74) Warning: Uninitialized variable: PCol
File: R:\EBDev\projects\BOB\Applied Linear Regression\Table7-2\gausjord.eba (74) Warning: Uninitialized variable: PRow

Linking...
Emergence Linker v1.11 Copyright ÂÃ,© 2006 Ionic Wind Software
[b]Unresolved external __imp_GETTICKCOUNT
Error: Unresolved extern __imp_GETTICKCOUNT[/b]
Error(s) in linking Table7_2.exe


Somehow, I get Error: Unresolved extern __imp_GETTICKCOUNT

TIA
Regards,
Bob

Rock Ridge Farm (Larry)

I think waitkey$ is a reserved word.

fasecero

Try replacing:


DECLARE IMPORT, GETTICKCOUNT(),UINT


with:


DECLARE IMPORT, _GETTICKCOUNT ALIAS GetTickCount(),INT


and when you need to use the function:


gtc=_GETTICKCOUNT()



LarryMc


delete your declare statement and
wherever gettickcount() is used in your program change it to MILLISECS() which is the exact same function built into EBasic commands.

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

LarryMc

Quote from: Rock Ridge Farm (Larry) on March 26, 2009, 05:27:41 AM
I think waitkey$ is a reserved word.
getkey without the $ is a keyword

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

LarryMc

if you use the gettickcount with the alias
DECLARE IMPORT, _GETTICKCOUNT ALIAS GetTickCount(),INT
make sure you spell the function name after the alias exactly as it is shown with the same upper/lower case letters.

I changed it just to see to this
DECLARE IMPORT, _GETTICKCOUNT ALIAS GETTICKCOUNT(),INT
and get the unresolved error.

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

LarryMc

if you change your original declare
DECLARE IMPORT, GETTICKCOUNT(),UINT
to DECLARE IMPORT, GetTickCount(),UINT
it will work
and when you call the function either way it will work:
gtc=GETTICKCOUNT()
gtc=GetTickCount()

still easier to just use MILLISECS()

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

REDEBOLT

Thanks to all for your replies.
Larry gave me the clue.
I had done some editing in another editor,
and it had capitalized "GetTickCount".

All is now well.

:D
Regards,
Bob