Page 1 of 1

V4 Compile error

Posted: Mon Mar 08, 2010 2:25 pm
by Ondra
Good day all.
I just upgraded to V4, and when I try to compile a program that I created using V3 I get the compile error listed below.
The program compiles in V3 but not in V4. I purchased V4 to take advantage of the one wire component and support for the same, which at the moment does not seem to be working on its own. Thanks in advance for your assistance.

Ondra

......................................................................................................................................................

C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8578:30): error: unknown identifier 'FCI_TMP_STR'
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8578:17): error: arguments of 'FCI_CONCATENATE' don't match the parameters of call
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8578:2): error: failed to generate expression
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8579:18): error: unknown identifier 'FCI_TMP_STR'
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8579:17): error: arguments of 'FCI_CONCATENATE' don't match the parameters of call
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8579:2): error: failed to generate expression
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8598:30): error: unknown identifier 'FCI_TMP_STR'
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8598:17): error: arguments of 'FCI_CONCATENATE' don't match the parameters of call
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8598:2): error: failed to generate expression
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8599:18): error: unknown identifier 'FCI_TMP_STR'
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8599:17): error: arguments of 'FCI_CONCATENATE' don't match the parameters of call
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8599:2): error: failed to generate expression
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8600:18): error: unknown identifier 'FCI_TMP_STR'
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8600:17): error: arguments of 'FCI_CONCATENATE' don't match the parameters of call
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8600:2): error: failed to generate expression
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8681:30): error: unknown identifier 'FCI_TMP_STR'
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8681:17): error: arguments of 'FCI_CONCATENATE' don't match the parameters of call
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8681:2): error: failed to generate expression
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8682:18): error: unknown identifier 'FCI_TMP_STR'
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8682:17): error: arguments of 'FCI_CONCATENATE' don't match the parameters of call
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8682:2): error: failed to generate expression
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8701:30): error: unknown identifier 'FCI_TMP_STR'
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8701:17): error: arguments of 'FCI_CONCATENATE' don't match the parameters of call
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8701:2): error: failed to generate expression
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8702:18): error: unknown identifier 'FCI_TMP_STR'
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8702:17): error: arguments of 'FCI_CONCATENATE' don't match the parameters of call
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8702:2): error: failed to generate expression
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8703:18): error: unknown identifier 'FCI_TMP_STR'
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8703:17): error: arguments of 'FCI_CONCATENATE' don't match the parameters of call
C:\Documents and Settings\Ondra\Desktop\Pebble 8_Dec24_09\PebbleLCD_OCT14_09_Finished.c(8703:2): error: failed to generate expression

...............

PebbleLCD_OCT14_09_Finished.c success

failure

Return code = 1

Flowcode was unable to compile the flowchart's C code due to the following errors:


If your flowchart contains C code, please review this carefully. If your flowchart contains no C-code or you have thoroughly reviewed the code, contact Technical Support.

FINISHED

Re: V4 Compile error

Posted: Mon Mar 08, 2010 2:40 pm
by Dan
Make sure you are using V4.2.3.58 (latest)

what device are you using?

Re: V4 Compile error

Posted: Mon Mar 08, 2010 2:52 pm
by Ondra
I am using the latest version. The chip is a PIC 18F2680.

Re: V4 Compile error

Posted: Mon Mar 08, 2010 2:59 pm
by Dan
I think your best bet is to check the component V4 FCD file, compare it to your V3 component file to see if anything jumps out.

Also post your flowcode program here for a mod to look at. <<<<<This is where I'm at with my bug on the ADC with certain devices.


Sorry I couldn't help D

Re: V4 Compile error

Posted: Mon Mar 08, 2010 3:31 pm
by Benj
Hello Ondra

This bug relates to string manipulations where more then one string is being added together. This modification was done to allow 10F devices to work but unfortunatly the knock on effect was this bug you are now experiencing.

If you go into your Flowcode v4\FCD directory and open the internals.h file in a text editor then you should find the following lines near the top of the file.

//unsigned char FCI_TMP_STR[20];
//int FCI_TMP_INT;

Change the lines so that they are as shown below and save the file and the code should now compile correctly for you.

#ifndef MX_10F_TRIS
unsigned char FCI_TMP_STR[20];
int FCI_TMP_INT;
#endif

Let me know how you get on.

Also cheers for trying to help Dan :) its much appreciated.