Page 1 of 1

library

Posted: Mon Aug 14, 2006 3:29 pm
by Seb McClouth
While compiling to a library I have the following code:

Code: Select all

'$include:'lib.qbi' 'contains the declares

FUNCTION OpenFile(FileName AS STRING)
OPEN FileName FOR OUTPUT AS #1
END FUNCTION
While doing the compile I get a 'Duplicate definition', for no reason 'cause there is no duplicate. Any suggestions?

I've loaded qb 7.1 with qbx /l

grtz

Posted: Mon Aug 14, 2006 4:30 pm
by Bulldog
do you by chance have your function declared as a different type in your include (ie.) declare function OpenFile%(FileName as string)

if so you need the % or whatever type declaration is being used in the include on the end of the function name.

Posted: Tue Aug 15, 2006 12:43 am
by Seb McClouth
Everything is without $, %, etc... double checked... I've thrown it away and started all over... if it happens again, I'll post it...