I am not sure if this is a QT or C++ related issue.

I have a commonvars.h file that I am using for shared memory location mapping.

I have the include statement in the main.cpp file that starts the QT app as well as one of my window .cpp files that I want to access the shared memory portions.

However I get a qatomic_x86_64.h:65 multiple definition of xxxxx error for each of the variables in the commonvars.h file.

Qt Code:
  1. //commonvars.h
  2. #ifndef COMMONVARS_H
  3. #define COMMONVARS_H
  4.  
  5. blah, balh
  6.  
  7. #endif
To copy to clipboard, switch view to plain text mode 




Any help?

thanks....