c++ - Unknown type name class -


i have following header files:

https://gist.github.com/wemakeweb/5501443 , compiler reports "unknown type name class". have included forward declaration, break circular including , think have to. did forget?

edit: put in 1 header file, , compiler still reports "expected ; after top level declarator"

https://gist.github.com/wemakeweb/5583500

edit 2 im getting linker errors. "undefined symbols architecture x86_64"

solved, problems were

  1. circular including
  2. main.c instead of main.cpp
  3. the actual code in static lib not linked properly

this error? error: unknown type name ‘class’

you're compiling c rather c++.

make sure source file has .cpp extension, , relevant compiler flags set correctly. (it helps if include exact error message , line numbers. don't try , retype, cut+paste.)


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -