Error: missing right paren

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
User avatar
Dutchie_World_Wide
Posts: 31
Joined: Thu Jul 08, 2010 8:52 am
Location: The Netherlands, or Thailand, or Gabon West Africa
Has thanked: 4 times
Been thanked: 3 times
Contact:

Error: missing right paren

Post by Dutchie_World_Wide »

Hi guys,

I am trying to get comfortable with the strings and random functions.

But when I "Compile to Chip" I get the following errors.

Random+String-Right.c(558): error: missing right paren
Random+String-Right.c(558): error: missing semicolon
Random+String-Right.c(558): error: missing right paren
Random+String-Right.c(498): error: failure

failure

Return code = 1

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

If I knew what a right paren and semicolon is, I would look for it.
But I have no idea what to look for. :oops:

Dutchie
Attachments
Random+String-Right.fcf
(7.5 KiB) Downloaded 212 times
Dutchie

"This is not a bug, this is a feature!"

User avatar
Dutchie_World_Wide
Posts: 31
Joined: Thu Jul 08, 2010 8:52 am
Location: The Netherlands, or Thailand, or Gabon West Africa
Has thanked: 4 times
Been thanked: 3 times
Contact:

Found it Re: Error: missing right paren

Post by Dutchie_World_Wide »

And while I do 1 more check on the calculation, I found the problem.

I by accident typed a (Space) in the Pi number.
Float = fmul(Float, 3. 1415926) :oops:

Problem solved.
Sorry for wasting space on the server :lol:
Dutchie

"This is not a bug, this is a feature!"

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Error: missing right paren

Post by medelec35 »

Hello Dutchie_World_Wide.
Fist well done for solving the cause of the error.
For future reference, and for any one else who is interested.
If you download Notepad++ or notepad2, this will display line numbering.
Then in 'Chip, 'Compiler Options' Where is says file viewer, just browse to the new notepad replacement. You only need to do this once.

Now compile to hex. Note the top line number in bracket e.g: Random+String-Right.c(558): error: missing right paren
You are interested in line 558.

Next Click on 'Chip' , View C....
New notepad replacement will load. Scroll down to line 558.
You will see: FCV_FLOAT = float32_mul(FCV_FLOAT, 3. 1415926);
Look for any mistakes along that line.
As you have correctly spotted, there is a space between dp and 1
You can use this method for solving any errors in the future.
If you can't remember the lines showing up with errors, just look when the flowchart is saved for a file with extension .msg.txt
You can alternately load .c file into your editor.
Martin

User avatar
Dutchie_World_Wide
Posts: 31
Joined: Thu Jul 08, 2010 8:52 am
Location: The Netherlands, or Thailand, or Gabon West Africa
Has thanked: 4 times
Been thanked: 3 times
Contact:

Re: Error: missing right paren

Post by Dutchie_World_Wide »

Hi Medelec35,

Thanks for the tip, very useful.

Dutchie
Dutchie

"This is not a bug, this is a feature!"

Post Reply