Closed jpkenny closed 2 years ago
sstcc fails to compile a simple c program:
jpkenny$ sstcc test.c test.c:2:5: error: expected identifier or '(' int main(int argc, char* argv[]){ ^ /Users/jpkenny/install/sst-macro-devel/include/sstmac/skeleton.h:206:14: note: expanded from macro 'main' #define main USER_MAIN ^ /Users/jpkenny/install/sst-macro-devel/include/sstmac/skeleton.h:212:2: note: expanded from macro 'USER_MAIN' SST_DEFINE_EXE_NAME \ ^ /Users/jpkenny/install/sst-macro-devel/include/sstmac/skeleton.h:53:36: note: expanded from macro 'SST_DEFINE_EXE_NAME' #define SST_DEFINE_EXE_NAME extern "C" const char exe_main_name[] = SST_APP_NAME_QUOTED; ^ test.c:2:5: error: initializer element is not a compile-time constant int main(int argc, char* argv[]){ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/jpkenny/install/sst-macro-devel/include/sstmac/skeleton.h:206:14: note: expanded from macro 'main' #define main USER_MAIN ^ /Users/jpkenny/install/sst-macro-devel/include/sstmac/skeleton.h:214:3: note: expanded from macro 'USER_MAIN' userSkeletonMainInitFxn(SST_APP_NAME_QUOTED, userSkeletonMain); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated.
Works fine with sst++.
Duplicated by #660
sstcc fails to compile a simple c program:
Works fine with sst++.