View Single Post
Posts: 915 | Thanked: 3,209 times | Joined on Jan 2011 @ Germany
#22
That doesn't help because BUILD and MD5 would still be undefined and it doesn't fix the overflow:
Code:
$ gcc -DBUILD=sulu -DVERSION=sulu oscp.c
oscp.c:21:0: warning: "VERSION" redefined
 #define VERSION "0.9.6"
 ^
<command-line>:0:0: note: this is the location of the previous definition
oscp.c: In function ‘show_help’:
<command-line>:0:7: error: ‘sulu’ undeclared (first use in this function)
oscp.c:112:13: note: in expansion of macro ‘BUILD’
 ", VERSION, BUILD, MD5, confname, progname);
             ^
<command-line>:0:7: note: each undeclared identifier is reported only once for each function it appears in
oscp.c:112:13: note: in expansion of macro ‘BUILD’
 ", VERSION, BUILD, MD5, confname, progname);
             ^
oscp.c:112:20: error: ‘MD5’ undeclared (first use in this function)
 ", VERSION, BUILD, MD5, confname, progname);
                    ^
oscp.c: In function ‘get_ch’:
oscp.c:1634:14: warning: overflow in implicit constant conversion [-Woverflow]
  } else ch = (chtype) ERR;
              ^
I also tried to define BUILD and MD5 in the code:
Code:
#define BUILD "sulu"
#define MD5 "1"
But then I get lots of undefined references (see attached archive).
Attached Files
File Type: gz oscp.txt.gz (5.4 KB, 399 views)