compilation failing

compilation failing

Аватар пользователя Naveen Tulabandula

Hi I donno why compilation is failing in 2nd case. command to compile ============================================= icl /c /FI:stubksm6888.h try.c icl /c /FI:stubksm6888.h try2.c ============================================= case 1 ============================================= #include struct ksllt { int a; int b; }; typedef struct ksllt ksllt; typedef int sword; #define KSLLATDW(name, descrip, cleanup, level, wtcls)                \\         KSLLATDV(name, descrip, cleanup, level)                       \\         KSLEVTDX3(name##lf_, "latch: " descrip, "address",  "number", \\                   "tries", 0, 0, wtcls) #define KSLLATDV(name, descrip, cleanup, level) KSMSGADV(ksllt, name) #define KSLEVTDX3(name, descrip, p1text, p2text, p3text,flags,callbacks,cls) \\         KSLEVTDV(name, descrip, p1text, p2text, p3text, flags, callbacks, cls,\\                  descrip) #define KSLEVTDV(name, descrip, p1text, p2text, p3text, flags, callbacks, \\                  cls, display_name) \\         KSMSGADV(sword, name) #define KSMSGADV(type,name) extern type name; KSLLATDW(ksmsal_, "ksm", 0, 0, 0) main() { printf("done.\\n"); }

#include struct ksllt{int a;int b;};typedef struct ksllt ksllt;typedef int sword;
#define KSLLATDW(name, descrip, cleanup, level, wtcls)                \\        KSLLATDV(name, descrip, cleanup, level)                       \\        KSLEVTDX3(name##lf_, "latch: " descrip, "address",  "number", \\                  "tries", 0, 0, wtcls)
#define KSLLATDV(name, descrip, cleanup, level) KSMSGADV(ksllt, name)
#define KSLEVTDX3(name, descrip, p1text, p2text, p3text,flags,callbacks,cls) \\        KSLEVTDV(name, descrip, p1text, p2text, p3text, flags, callbacks, cls,\\                 descrip)
#define KSLEVTDV(name, descrip, p1text, p2text, p3text, flags, callbacks, \\                 cls, display_name) \\        KSMSGADV(sword, name)
#define KSMSGADV(type,name) extern type name;KSLLATDW(ksmsal_, "ksm", 0, 0, 0)main(){
printf("done.\\n");} ============================================= case 2 ============================================= #include struct ksllt { int a; int b; }; typedef struct ksllt ksllt; typedef int sword; #define KSLLATDW(name, descrip, cleanup, level, wtcls)                \\   KSLLATDW2(name, descrip, cleanup, level, wtcls, descrip) #define KSLLATDW2(name, descrip, cleanup, level, wtcls, display_name) \\   KSLLATDV2(name, descrip, cleanup, level, display_name)              \\   KSLEVTDY3(name##lf_, "latch: " descrip, "address",  "number",       \\             "tries", 0, 0, wtcls, "latch: " display_name) #define KSLLATDV2(name, descrip, cleanup, level, display_name) \\         KSMSGADV(ksllt, name) #define KSLEVTDY3(name, descrip, p1text, p2text, p3text, \\                   flags, callbacks, cls, display_name)   \\         KSLEVTDV(name, descrip, p1text, p2text, p3text,  \\                  flags, callbacks, cls, display_name) #define KSLEVTDV(name, descrip, p1text, p2text, p3text, flags, callbacks, \\                  cls, display_name) \\         KSMSGADV(sword, name) #define KSMSGADV(type,name) extern type name; KSLLATDW(ksmsal_, "ksm", 0, 0, 0) main() { printf("Done.\\n"); } ============================================= stubksm6888.h ============================================= #define ksmsal_ (*ksmsal_) =============================================

3 posts / 0 новое
Последнее сообщение
Пожалуйста, обратитесь к странице Уведомление об оптимизации для более подробной информации относительно производительности и оптимизации в программных продуктах компании Intel.
Аватар пользователя Jennifer J. (Intel)

does "cl" compile ok?  Jennifer

Аватар пользователя TimP (Intel)

It's not possible to save from this screen without incurring additional formatting errors.  Correcting formatting errors allows compilation.  So I suspect some of the apparent formatting errors are in your source, and more were introduced as you pasted to the screen.

Зарегистрируйтесь, чтобы оставить комментарий.