Identifier strcat was not declared

General discussion on mikroBasic for AVR.
Post Reply
Author
Message
edg962
Posts: 27
Joined: 06 Dec 2008 04:46

Identifier strcat was not declared

#1 Post by edg962 » 07 Dec 2008 00:15

Gents, I am not sure why it is saying this. My code is just fine.

Example: strcat(move_count, move_count_str)

where move_count is an integer and move_count_str is a string. What am I doing wron? Any help would be great. Thanks in advance.

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#2 Post by yo2lio » 07 Dec 2008 08:25

Code: Select all

procedure strcat(var s1, s2 : string[100]);
 
Description The function appends the value of string s2 to string s1 and terminates s1 with a null character.

So, move_count must be string !
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

edg962
Posts: 27
Joined: 06 Dec 2008 04:46

strcat

#3 Post by edg962 » 07 Dec 2008 21:08

Thank yo2lio for your prompt reply. You are correct. However, even after changing move_count to a string, I get same error message. Thanks again.


yo2lio wrote:

Code: Select all

procedure strcat(var s1, s2 : string[100]);
 
Description The function appends the value of string s2 to string s1 and terminates s1 with a null character.

So, move_count must be string !

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#4 Post by yo2lio » 08 Dec 2008 07:39

what compiler do you use ?
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

edg962
Posts: 27
Joined: 06 Dec 2008 04:46

#5 Post by edg962 » 09 Dec 2008 04:19

The just released Basic PRO version for AVR.
yo2lio wrote:what compiler do you use ?

edg962
Posts: 27
Joined: 06 Dec 2008 04:46

Re: Identifier strcat was not declared (Resolved!)

#6 Post by edg962 » 16 Dec 2008 17:54

String library was not activated when I switched to PRO version.

edg962 wrote:Gents, I am not sure why it is saying this. My code is just fine.

Example: strcat(move_count, move_count_str)

where move_count is an integer and move_count_str is a string. What am I doing wron? Any help would be great. Thanks in advance.

Post Reply

Return to “mikroBasic for AVR General”