(NEW) invalid use of non-static member function

Hello Everyone!

I'm happy to say that this is my first post on this community :slight_smile: (I'm new to both programming and Arduino)}

I'm struggling with a compiling error "invalid use of non-static member function" While trying to upload this code to the arduino YUN:

 #include <Bridge.h>
#include <Process.h>

void setup() {
  Bridge.begin;
}
void loop() {
  takePicture();
}
void takePicture(){
  Process p; // Create new process
  p.begin("fswebcam"); // Run the fswebcam utility, but first...
  p.addParameter("/mnt/sda1/pic.jpg"); // Add a path paramenter
  p.addParameter("-r 1280x720"); // Add a resolution parameter
  p.run(); // Now run it and wait for it's termination
}
}

Bellow the full compiling error i get:

 /tmp/arduino_modified_sketch_878345/Blink.ino: In function 'void setup()':
Blink:5: error: invalid use of non-static member function
   Bridge.begin;
               ^
/tmp/arduino_modified_sketch_878345/Blink.ino: At global scope:
Blink:17: error: expected declaration before '}' token
 }
 ^
exit status 1
invalid use of non-static member function

Disclaimer: Please forgive me if the community already has a thread discussing this issue (I couldn't find one myself to help me with his specific issue)

Here's my email just in case: uflucas@gmail.com

Thanks in advance!

The begin function, like all functions, require () after. The () contain the arguements for the function and if there are no arguements the () are still required. So Bridge.begin() is correct.

And there is an extra } after the takePicture() function definition.

Hey groundFungus! Thanks a lot, your suggestion was correct.

Thanks again!