JGCRI / gcam-core

GCAM -- The Global Change Analysis Model
http://jgcri.github.io/gcam-doc/
Other
263 stars 159 forks source link

Error while compiling a research branch, close to GCAM v6 with VS studio 2022 (v143) #416

Closed rongqizhu closed 2 months ago

rongqizhu commented 2 months ago

I have attempted to follow the GCAM Build Instructions to build a research branch, close to GCAM v6. My third party libraries version: (Boost 1.83.0, tbb 2021.6.0, eigen 3.4.0, jdk-21.0.1). The specific situation in the GCAM Workspace/libs is as follows: image I receive some errors:

  1. Severity Code Description Project File Line Suppression State Details Error C2143 syntax error: missing ';' before '<' objects-main D:\GCAM\gcam-china-dev\cvs\objects\containers\include\tree_item.h 73
  2. Severity Code Description Project File Line Suppression State Details Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int objects-main D:\GCAM\gcam-china-dev\cvs\objects\containers\include\tree_item.h 73
  3. Severity Code Description Project File Line Suppression State Details Error C2238 unexpected token(s) preceding ';' objects-main D:\GCAM\gcam-china-dev\cvs\objects\containers\include\tree_item.h 73
    image Have others run into this problem and/or have some ideas about addressing it? Thank you!
rongqizhu commented 2 months ago

I am unable to solve this problem on VS2022, but As @pralitp noted in an issue (Issue building GCAM 5.3 in Windows), i have compiled successfully on VS2019 (vc142).