V4 Compile error

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
Ondra
Posts: 325
Joined: Wed Aug 29, 2007 7:33 pm
Been thanked: 2 times
Contact:

V4 Compile error

Post 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

Dan
Posts: 17
Joined: Thu Sep 20, 2007 4:43 pm
Location: Canada
Contact:

Re: V4 Compile error

Post by Dan »

Make sure you are using V4.2.3.58 (latest)

what device are you using?

Ondra
Posts: 325
Joined: Wed Aug 29, 2007 7:33 pm
Been thanked: 2 times
Contact:

Re: V4 Compile error

Post by Ondra »

I am using the latest version. The chip is a PIC 18F2680.

Dan
Posts: 17
Joined: Thu Sep 20, 2007 4:43 pm
Location: Canada
Contact:

Re: V4 Compile error

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: V4 Compile error

Post 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.

Post Reply