Yes, something like this.
As I said at the beggining of the post, I deliberately have write a code to rise an error with circular dependencies.
And my questión is: How can be possible I can build the project?
And this error means circular dependence error ?
exited with code -1073741819 = STATUS_ACCESS_VIOLATION 0xC0000005
and, a more question:
ClassA.h
class B;
class A {
public:
private:
}
class B;
class A {
public:
private:
}
To copy to clipboard, switch view to plain text mode
ClassA.cpp
#include "classb.h"
ClassA::function(){
Classb *clasb;
clasb->function();
}
#include "classb.h"
ClassA::function(){
Classb *clasb;
clasb->function();
}
To copy to clipboard, switch view to plain text mode
It works .
But this one not :
ClassA.h
class B;
class A {
public:
Classb *clasb; // I want to use in several places ...
private:
}
class B;
class A {
public:
Classb *clasb; // I want to use in several places ...
private:
}
To copy to clipboard, switch view to plain text mode
ClassA.cpp
#include "classb.h"
ClassA::function(){
clasb->function();
}
#include "classb.h"
ClassA::function(){
clasb->function();
}
To copy to clipboard, switch view to plain text mode
At the second case, I have :
Invalid use in static ClassA::clasb static member.
Is that than I cannot create public or private objetcs using forward?
Thanks
Bookmarks