Re: [Seed7-users] dna fight
Interpreter and compiler for the Seed7 programming language.
Brought to you by:
thomas_mertes
From: Thomas M. <tho...@gm...> - 2008-10-05 20:14:56
|
johannes <joh...@we...> wrote: > Hello Thomas, you worte,that you'd be interested in errors related to > the compile prcess of sub7. I'm not shure if this is one, though im new > to linux and not yet used to work with the terminal. I assume that sub7 means Seed7. > I'm using Ubuntu 8.04 Hardy Heron and a Seed7 File with the Name > seed7_05_20080921.tgz. About the compiler I'm not sure. As I sad before, > I'm new to this hole stuff. > > I read that using Linux and a shell, I'd have to use a socalled > makefile. What exactly is this and how do I manage to create on? > Couldn't find informations on that. The make utility is used to manage the compilation process. The make utility uses a file named 'makefile' which contains informations about what files need to be processed (by the compiler or other tools) and the dependencies between this files. The 'makefile' contains rules to generate files. There are some precoditions (other files) which need to be present before some commands get executed which should create the file described with this rule. A detailed explanation of the make utility is here: http://en.wikipedia.org/wiki/Make_(software) > Yours Sincerly > Johannes Herzog > > > Error Log from my Terminal: > > johannes@Johannes:~/seed7/src$ make depend > gcc -O2 -g -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow > -Wpointer-arith -M runerr.c option.c primitiv.c actlib.c arrlib.c [snip] Usually the command 'make depend' should create the file 'version.h'. When I execute 'make depend' it starts with: tm@penguin:~/seed7_5/seed7/src$ make depend echo "#define ANSI_C" > version.h echo "#define USE_DIRENT" >> version.h echo "#define PATH_DELIMITER '/'" >> version.h echo "#define CATCH_SIGNALS" >> version.h echo "#define USE_MMAP" >> version.h echo "#undef INCL_NCURSES_TERM" >> version.h echo "#undef INCL_CURSES_BEFORE_TERM" >> version.h echo "#undef MKDIR_WITH_ONE_PARAMETER" >> version.h ... For me this looks like a previous attempt with 'make depend' was somehow stopped (e.g. with CTRL-C or by an error in the makefile) and the file 'version.h' was not completely generated. How does your file 'version.h' look like? > infile.c:694: Fehler: »SEED7_LIBRARY« nicht deklariert (erste Benutzung > in dieser Funktion) This is another indication that the 'version.h' file was not created correctly. A correct 'version.h' file should contain a #define for SEED7_LIBRARY. on my computer 'version.h' contains the line: #define SEED7_LIBRARY "/home/tm/seed7_5/lib" I suggest you to start from the beginning with the command: make clear This removes all files created by previous calls of 'make'. Afther that use make depend and finally make this should work. If the same error happens again or some other error shows up please send me the file 'version.h' and the log again (just to be sure). Greetings Thomas Mertes Seed7 Homepage: http://seed7.sourceforge.net Seed7 - The extensible programming language: User defined statements and operators, abstract data types, templates without special syntax, OO with interfaces and multiple dispatch, statically typed, interpreted or compiled, portable, runs under linux/unix/windows. -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx |