For Programmers: Free Programming Magazines  


Home > Archive > Clipper > April 2006 > Harbour: Link Error - unresolved external symbol









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Harbour: Link Error - unresolved external symbol
garrethgoh@gmail.com

2006-04-08, 6:55 pm

Hi,

I'm new in harbour and xMate. I have the following program (test.prg):

&&-------------------------------------------
function main()
local i
cls
for i:= 1 to 10
@i,0 say transform(i, "99")
next
return (nil)
&&-------------------------------------------

I use Harbour (Alpha Build 45), Microsoft compiler to compile and
Microsoft Linker to link. I also use xMate. During the linking process,
I get the following error messages. I cannot figure out what is wrong
with it for 3 hours.

Does anyone know what causes the error? TIA.

---------------------------------------------------------------
D:\Test\Obj\test.Obj /OUT:D:\Test\Test.Exe
test.Obj : error LNK2001: unresolved external symbol _HB_FUN___DBGENTRY
test.Obj : error LNK2001: unresolved external symbol _HB_FUN_TRANSFORM
test.Obj : error LNK2001: unresolved external symbol _HB_FUN_DEVOUT
test.Obj : error LNK2001: unresolved external symbol _HB_FUN_DEVPOS
test.Obj : error LNK2001: unresolved external symbol _HB_FUN_SETPOS
test.Obj : error LNK2001: unresolved external symbol _HB_FUN_SCROLL
test.Obj : error LNK2019: unresolved external symbol
_hb_vmProcessSymbols referenced in function _hb_vm_SymbolInit_TEST
test.Obj : error LNK2019: unresolved external symbol _hb_vmExecute
referenced in function _HB_FUN_MAIN
LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main
referenced in function ___tmainCRTStartup
D:\Test\Test.Exe : fatal error LNK1120: 9 unresolved externals
---------------------------------------------------------------

Regards,
Garret

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com