From: Eric B. <er...@go...> - 2007-12-23 21:05:16
|
Colin Paul Adams wrote: > For the tree formatter example, if I try: > > geant -v compile_ge > > I get: > > Loading Project's configuration from build.eant > Loading Project's configuration from /home/colin/gobo/misc/eiffel.eant > Loading Project's configuration from /home/colin/gobo/misc/ge2e.eant > Building Project > > eiffel.init: > > [set] eiffel=ge > > eiffel.init_eiffel: > > [set] eiffel=ise > > eiffel.init_os: > > > eiffel.init_unix: > > [set] exe= > > formatter.init_system: > > [set] system=formatter > [set] library=xml > [set] system_dir=/home/colin/gobo/example/xml/tree/formatter > > eiffel.prepare_compile: > > > eiffel.compile_ge: > > [set] eiffel=ge > > eiffel.xace: > > [gexace] gexace --define="GOBO_EIFFEL=ge GOBO_OS=unix GOBO_CC=gcc" --system="ge" --output="compile_ge.ace" /home/colin/gobo/example/xml/tree/formatter/system.xace > [delete] formatter > [set] finalize=true > [set] split=true > [gec] gec --finalize --cc=no compile_ge.ace > [exec] ./formatter.sh > formatter3.c: In function $(B!F(Bfile_mkdir$(B!G(B: > formatter3.c:11672: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) > formatter3.c:11672: error: (Each undeclared identifier is reported only once > formatter3.c:11672: error: for each function it appears in.) In fact this is strange because the code that it is complaining about is exactly the same that it compiled in the generated C code for all applications. It is a copy of file $GOBO/tool/gec/runtime/c/eif_file.c. The generated .h file should contain a copy of the file $GOBO/tool/gec/runtime/c/eif_except.h which has an include of <errno.h>, which itself should declared 'errno'. There is no problem when compiling under Windows: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\DriveE\gobo\gobo\example\xml\tree\formatter>geant -v compile_ge Loading Project's configuration from build.eant Loading Project's configuration from C:\DriveE\gobo\gobo/misc/eiffel.eant Loading Project's configuration from C:\DriveE\gobo\gobo/misc/ge2e.eant Building Project eiffel.init: [set] eiffel=ge eiffel.init_eiffel: [set] eiffel=ge eiffel.init_os: eiffel.init_windows: [set] exe=.exe formatter.init_system: [set] system=formatter [set] library=xml [set] system_dir=C:\DriveE\gobo\gobo/example/xml/tree/formatter eiffel.prepare_compile: eiffel.compile_ge: [set] eiffel=ge eiffel.xace: [gexace] gexace --define="GOBO_EIFFEL=ge GOBO_OS=windows" --system="ge" --output="compile_ge.ace" C:\DriveE\gobo\gobo\example\xml\tree\formatter\system.xace [delete] formatter.exe [set] finalize=true [set] split=true [gec] gec --finalize --cc=no --catcall=error compile_ge.ace [exec] .\formatter.bat formatter3.c formatter2.c formatter1.c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |