The problem is solved.
I just moved one of #include
from the header to the source file, and it has worked.
plotmarker.h
#ifndef PLOTMARKER_H #define PLOTMARKER_H #include <QObject> class Plotter; class PlotMarker : public QObject { // ... Plotter* m_attachedPlot; // ... }; #endif // PLOTMARKER_H
// …
plotmarker.cpp
#include "plotmarker.h" #include "plotter.h" // ...
Related Posts:
- “Symbol(s) not found for architecture x86_64” on QtCreator project
- Compiler error C4430: missing type specifier – int assumed [duplicate]
- How do I include the string header?
- error: expected unqualified-id error: Meaning and fix? [duplicate]
- c++ compile error: ISO C++ forbids comparison between pointer and integer
- error: redefinition of class
- C++ Error: No match for ‘operator=’
- Identifier not found error on function call
- What is an ‘undeclared identifier’ error and how do I fix it?
- Windows 7 exception code: 0xc0000409
- Identifier not found error on function call
- What is an ‘undeclared identifier’ error and how do I fix it?
- C ++ error: a expected initializer before [function name]
- invalid new-expression of abstract class type
- what does “error : a nonstatic member reference must be relative to a specific object” mean?
- error: redefinition of class
- C++ error: “Array must be initialized with a brace enclosed initializer”
- error: expected unqualified-id before ‘if’
- error: expected primary-expression before ‘)’ token (C)
- what does “error : a nonstatic member reference must be relative to a specific object” mean?
- Error “C++ requires a type specifier for all declarations whilst defining methods”
- C++ #include guards
- C++ #include guards
- Resolve build errors due to circular dependency amongst classes
- class not declared in scope – even though .h was included
- C++ error: definition of implicitly-declared
- Already defined in .obj – no double inclusions
- cc1plus: error: unrecognized command line option “-std=c++11” with g++
- extra qualification error in C++
- Error: C2228: left of ” must have class/struct/union
- Cannot open output file, permission denied
- Random not declared in scope
- Call to non-static member function without an object argument compiler error
- How to convert QString to int?
- What is the difference between a .cpp file and a .h file?
- How to change string into QString?
- multiple definitions error in c++ and solution to solve this issue
- Stray ‘\342’ in C++ program
- QByteArray to QString
- System not declared in scope?
- Error in assignment of member in read-only object
- Call of overloaded function is ambiguous
- error: ISO C++ forbids in-class initialization of non-const static member
- Error: expression cannot be used as a function?
- error C2039: ‘string’ : is not a member of ‘std’, header file problem
- cmath vs math.h (And similar c-prefixed vs .h extension headers)
- Unexpected end of file error
- virtual memory exhausted: Cannot allocate memory
- Eclipse CDT: Symbol ‘cout’ could not be resolved
- How to convert string to char array in C++?
- How can I convert a std::string to int?
- Why is “using namespace std;” considered bad practice?
- What is a lambda expression in C++11?
- How to convert string to char array in C++?
- ld: symbol(s) not found for architecture x86_64 error
- C++ string to double conversion
- How do I reverse a C++ vector?
- Is there a C++ decompiler?
- What is a dangling pointer?
- undefined reference to WinMain@16 (codeblocks)
- Why use ‘glad’ library for opengl initialization? [duplicate]
- What does `*&` in a function declaration mean?
- Why am I getting this redefinition of class error?
- How to convert a std::string to const char* or char*
- What is the difference between a static and const variable?
- How to create a dynamically-allocated array of const objects, but have values assigned to them?
- Why doesn’t std::vector::push_front() exist?
- Fastest way to check if a file exist using standard C++/C++11,14,17/C?
- Invalid use of non-static member function c++
- Is std::stoi actually safe to use?
- C++ forbids variable-size array
- Fill array with random numbers within a specified range (C++)
- Remove an array element and shift the remaining ones
- expected unqualified-id before string constant
- C++: Access violation writing location
- error: strcpy was not declared in this scope
- how to print a string to console in c++
- How to call a parent class function from derived class function?
- What are the different versions of exec used for in C and C++?
- C++ – include unistd.h: why not cunistd?
- Dynamically allocated string array, then change it’s value?
- Use the auto keyword in C++ STL
- c++ –
- C++ pass an array by reference
- error LNK2019: unresolved external symbol “” referenced in function
- Undefined reference to a static member
- How to sort with a lambda?
- stoi function gives error: std::invalid_argument at memory location 0x0035E8D8. c++
- Stack around the variable ‘ ‘ was corrupted
- The difference between cin.ignore and cin.sync
- casting int to char using C++ style casting
- Unrecognizable template declaration/definition
- MSVCP120d.dll missing
- Modulo operator with negative values [duplicate]
- Finding the type of an object in C++
- C++ Simple Dice roll – how to return multiple different random numbers [duplicate]
- Struct with template variables in C++
- error: no member function declared in class
- Why does my program give “NULL used in arithmetic”
- no matching function to call for “getline”