guide to creating your own libraries in mC

General discussion on mikroC.
Author
Message
pizon
mikroElektronika team
Posts: 823
Joined: 11 Oct 2004 08:53

#16 Post by pizon » 19 May 2005 16:03

.mcl files made in previous versions of mikro(Basic, Pascal, C) are incompatible with new .mcl format. So, you could either rebuild your mikroBasic source in mB 2.0 and include that mcl, or port the source completely to mC.
pizon

gambrose
Posts: 369
Joined: 28 Sep 2004 17:34
Location: uk

#17 Post by gambrose » 19 May 2005 17:13

I was trying a mcl file created in mikroC version 2.0.0.2 in mikroBasic version 2
Graham Ambrose

pizon
mikroElektronika team
Posts: 823
Joined: 11 Oct 2004 08:53

#18 Post by pizon » 20 May 2005 12:06

OK, now I understand. In mikroBasic, library files are not being included in .mlk file. Instead, you should alter the appropriate PXXFXXXdef.pbas file, by adding the include statement for your library (you'll see there how other libraries are included).
pizon

gambrose
Posts: 369
Joined: 28 Sep 2004 17:34
Location: uk

#19 Post by gambrose » 20 May 2005 12:22

Thanks that works now :)

Although mikroBasic doesn't seem to like the static variables i have in my mikroC functions. :(
Graham Ambrose

Post Reply

Return to “mikroC General”