Page 1 of 1

String Function Error

Posted: Thu Nov 06, 2008 7:25 am
by Kumaran
Hi

Please find attached the simple string concatenating program. If you compile c code and view it. you can not find concatenate function in that due to that program is not working.

The attached program is developed just for getting the support. all the string has got the same problem.

Regards
Kumaran

Re: String Function Error

Posted: Thu Nov 06, 2008 9:14 am
by Steve
It seems to work for me. The <concatenate> function is in the <internals.h> file - perhaps yours is not correct or has been accidentally deleted.

Reinstalling Flowcode should fix the problem. Alternatively, Ben should be able to send you an up-to-date version of the file. Which version of Flowcode are you using?

Re: String Function Error

Posted: Thu Nov 06, 2008 9:51 am
by Kumaran
Where will be this internals.h file is located? Include command should automatically come in compiled C right? My version.3.4.7.
can you attach your C file?

Re: String Function Error

Posted: Thu Nov 06, 2008 10:04 am
by Kumaran
in my compiled C, internal.h was already included. however I get following error in MPLAB
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external function:'FCI_CONCATENATE(unsigned char*,unsigned char,unsigned char*,unsigned char,unsigned char*,unsigned char)'
Error: Unresolved external symbol, function:FCI_CONCATENATE

Re: String Function Error

Posted: Thu Nov 06, 2008 10:36 am
by Benj
Hello

You are getting the errors in MPLAB because you need to include the includes.h file. This file is located inside the Flowcode V3/fcd directory you could copy it into your project directory to get it working in MPLAB.

Re: String Function Error

Posted: Thu Nov 06, 2008 10:43 am
by Benj
To avoid using the function you could research another string manipulation function that is compatible with your compiler. This would allow you to replace all the calls to the concatenate function.