Non Logical syntax error ?

Hi,
I come up problem with constructor in writing lib.

I am writing one class called NetworkingClass.

first of all i have to add header file with "add file" just that ide is aware of class...

class header:

#ifndef NETWORKINGCLASS_H
#define NETWORKINGCLASS_H
#include <Arduino.h> 

class NetworkingClass
{
    public:
        NetworkingClass(); 
    private:
    byte * mac; 
};

#endif

class cpp

#include <NetworkingClass.h> 

NetworkingClass::NetworkingClass()
{
  ;
}

main code

#include <Arduino.h> 
#include "NetworkingClass.h"
byte  macDevice[]  = {   0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x01 };
  NetworkingClass c(); 

void setup() 
{

}

void loop()
{
  
}

with this code i get error
NetworkingClass.cpp:4: error: 'NetworkingClass' has not been declared
NetworkingClass.cpp:4: error: ISO C++ forbids declaration of 'NetworkingClass' with no type

The problem is that as You can see in code class is correct and the constructor is also correct?
what could be the couse of the problem?
I am developing on mac

What does

NetworkingClass::NetworkingClass()
{
;
}

return? Is it void, Boolean, int, float ???

just for test I did just ";" what is just one Microprocessor empty operation.
It does nothing just making sure that gcc will compil correctly empty function;

NetworkingClass::NetworkingClass()
{
  ;
}

this is code for constructor of NetworkingClass class. So it's non type funtion and non returning....

#include <Arduino.h> 
#include "NetworkingClass.h"
byte  macDevice[]  = {   0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x01 };
  NetworkingClass c();

No brackets:

  NetworkingClass c;

even removing brackets did not help.

The only way it works is if I write constructor within the class delacaration. That way works even with passing by variable to the constructor ;/

I got it to compile by changing the include to read:

#include "NetworkingClass.h"

In which file did You changed it ? what is the syntax for read ?

wronek:
In which file did You changed it ?

The cpp file.

what is the syntax for read ?

What do you mean? Syntax for "read" what?

#include "foo.h"

means "include the file foo.h from the current directory or user include path" I think.

#include <foo.h>

means "include the file foo.h from the system (library) include path"

A user program should use <> for libraries and "" for local .h files, for instance.
The cpp should use "" to avoid picking up any other foo.h that might be in the system
since the correct foo.h must be the one in the same directory as foo.cpp.

Various compilers are setup in various ways, not always in agreement with this distinction, and
may search both paths (but in different sequence) for the two directives.

The Arduino system does some monkeying around that may or may not confound the issue.