Hiya, Hope you can use this. The fault in the program was, that i had copied something, from the .c file, and forgot to change { to ; when i made the headers. It works fine, if i do so. Gcc-version: 2.95.1 System: SGI with IRIX Release 6.5 compile line: gcc -Wall -pedantic -g Algorithms.c Mess.c -o Mess Output: ----------------------------------- In file included from Algorithms.c:1: Algorithms.h: In function `playfair_get_code': Algorithms.h:30: warning: ANSI C forbids nested functions Algorithms.h: In function `vigenere_get_code': Algorithms.h:33: warning: ANSI C forbids nested functions Algorithms.h: In function `transposiontion_get_code': Algorithms.h:36: warning: ANSI C forbids nested functions Algorithms.c: In function `sdes_get_code': Algorithms.h:39: warning: This file contains more `{'s than `}'s. Algorithms.c:3: warning: ANSI C forbids nested functions Algorithms.c:10: warning: ANSI C forbids nested functions Algorithms.c:17: warning: ANSI C forbids nested functions Algorithms.c:40: warning: ANSI C forbids nested functions Algorithms.c:100: warning: ANSI C forbids nested functions Algorithms.c:162: warning: ANSI C forbids nested functions Algorithms.c:237: warning: ANSI C forbids nested functions Algorithms.c:264: warning: ANSI C forbids nested functions Algorithms.c:298: warning: ANSI C forbids nested functions Algorithms.c:332: warning: ANSI C forbids nested functions Algorithms.c:384: warning: ANSI C forbids nested functions Algorithms.c:414: warning: ANSI C forbids nested functions Algorithms.c:442: warning: ANSI C forbids nested functions Algorithms.c:554: warning: ANSI C forbids nested functions Algorithms.c:586: warning: ANSI C forbids nested functions Algorithms.c:628: warning: ANSI C forbids nested functions Algorithms.c:670: warning: ANSI C forbids nested functions Algorithms.c:670: warning: static declaration for `sdes_enc' follows non-static Algorithms.c:690: warning: ANSI C forbids nested functions Algorithms.c:690: warning: static declaration for `sdes_dec' follows non-static Algorithms.c:714: parse error at end of input Algorithms.c:714: Internal compiler error in `dwarf2out_finish', at dwarf2out.c:10054 Please submit a full bug report. See for instructions. In file included from Mess.c:3: Algorithms.h: In function `playfair_get_code': Algorithms.h:30: warning: ANSI C forbids nested functions Algorithms.h: In function `vigenere_get_code': Algorithms.h:33: warning: ANSI C forbids nested functions Algorithms.h: In function `transposiontion_get_code': Algorithms.h:36: warning: ANSI C forbids nested functions Mess.c: In function `sdes_get_code': Algorithms.h:39: warning: This file contains more `{'s than `}'s. Mess.c:5: warning: ANSI C forbids nested functions Mess.c:21: warning: ANSI C forbids nested functions Mess.c:21: warning: `main' is normally a non-static function Mess.c:118: parse error at end of input Mess.c:118: Internal compiler error in `dwarf2out_finish', at dwarf2out.c:10054 Please submit a full bug report. See for instructions. ------------------------- -- /Mads J. Jurik ---------------------------------------------------- Without icecream, fame and fortune are meaning less. - Kriff ---------------------------------------------------- files.gz