Δημοσιεύτηκε: 29 Φεβ 2012, 23:44
από Ilias95
Στα γρήγορα.

Κατά το compile πήρα:
Κώδικας: Επιλογή όλων
ilias@ilias-pc:~/hex$ gcc hexview.c -o hexview
hexview.c: In function ‘view_row’:
hexview.c:457:10: προειδοποίηση: assignment makes integer from pointer without a cast [enabled by default]
hexview.c:458:2: προειδοποίηση: passing argument 1 of ‘printf’ makes pointer from integer without a cast [enabled by default]
/usr/include/stdio.h:359:12: σημείωση: expected ‘const char * __restrict__’ but argument is of type ‘int’
hexview.c:458:2: προειδοποίηση: format not a string literal and no format arguments [-Wformat-security]
hexview.c:477:12: προειδοποίηση: assignment makes integer from pointer without a cast [enabled by default]
hexview.c:478:4: προειδοποίηση: passing argument 1 of ‘printf’ makes pointer from integer without a cast [enabled by default]
/usr/include/stdio.h:359:12: σημείωση: expected ‘const char * __restrict__’ but argument is of type ‘int’
hexview.c:478:4: προειδοποίηση: format not a string literal and no format arguments [-Wformat-security]
hexview.c:484:12: προειδοποίηση: assignment makes integer from pointer without a cast [enabled by default]
hexview.c:485:4: προειδοποίηση: passing argument 1 of ‘printf’ makes pointer from integer without a cast [enabled by default]
/usr/include/stdio.h:359:12: σημείωση: expected ‘const char * __restrict__’ but argument is of type ‘int’
hexview.c:485:4: προειδοποίηση: format not a string literal and no format arguments [-Wformat-security]
hexview.c:491:12: προειδοποίηση: assignment makes integer from pointer without a cast [enabled by default]
hexview.c:492:4: προειδοποίηση: passing argument 1 of ‘printf’ makes pointer from integer without a cast [enabled by default]
/usr/include/stdio.h:359:12: σημείωση: expected ‘const char * __restrict__’ but argument is of type ‘int’
hexview.c:492:4: προειδοποίηση: format not a string literal and no format arguments [-Wformat-security]
hexview.c:511:12: προειδοποίηση: assignment makes integer from pointer without a cast [enabled by default]
hexview.c:512:4: προειδοποίηση: passing argument 1 of ‘printf’ makes pointer from integer without a cast [enabled by default]
/usr/include/stdio.h:359:12: σημείωση: expected ‘const char * __restrict__’ but argument is of type ‘int’
hexview.c:512:4: προειδοποίηση: format not a string literal and no format arguments [-Wformat-security]
hexview.c:515:12: προειδοποίηση: assignment makes integer from pointer without a cast [enabled by default]
hexview.c:516:4: προειδοποίηση: passing argument 1 of ‘printf’ makes pointer from integer without a cast [enabled by default]
/usr/include/stdio.h:359:12: σημείωση: expected ‘const char * __restrict__’ but argument is of type ‘int’
hexview.c:516:4: προειδοποίηση: format not a string literal and no format arguments [-Wformat-security]
hexview.c:519:12: προειδοποίηση: assignment makes integer from pointer without a cast [enabled by default]
hexview.c:520:4: προειδοποίηση: passing argument 1 of ‘printf’ makes pointer from integer without a cast [enabled by default]
/usr/include/stdio.h:359:12: σημείωση: expected ‘const char * __restrict__’ but argument is of type ‘int’
hexview.c:520:4: προειδοποίηση: format not a string literal and no format arguments [-Wformat-security]
ilias@ilias-pc:~/hex$


Επίσης υπάρχει μήπως κάποιο πρόβλημα με το -raw argument;
Κώδικας: Επιλογή όλων
ilias@ilias-pc:~/hex$ ls
con_color.h hexview hexview.c hexview.h test1.py
ilias@ilias-pc:~/hex$ ./hexview -raw hexview
No such file or directory
press ENTER...
ilias@ilias-pc:~/hex$ ./hexview -raw test1.py
No such file or directory
press ENTER...


Δεν πρόλαβα να κάνω δοκιμές. Θα κάνω αργότερα με διάφορα αρχεία.
Αλλά πες μας αν θες κάποια σημεία που πρέπει να προσέξουμε αν δουλεύουν σωστά.