Re: [tecomp] Does tecomp support multiple source file
Status: Beta
Brought to you by:
helmut_brandl
From: Helmut B. <hel...@gm...> - 2008-08-27 13:10:36
|
Hello David, just another remark. If you will run into another segfault, try to execute your code with the asserted version of the compiler. You get the asserted version by running make atecomp in the tecomp directory. This makes the executable atecomp into gen_dir/bin. If you have already run the examples, it should be there. The asserted version gives much more information in case of an unexpected runtime error of tecomp. I have executed your code with atecomp and immediately discovered what went wrong. Since atecomp executes slower than tecomp (many assertions are checked) this is recommendable only in case of strange runtime errors. Regards Helmut Helmut Brandl wrote: > Come David wrote: > >> When I compile with tecomp application.ace, I get a segfault. >> If i remove all occurence of TEST in the first file, all is ok. >> >> >> > Multiple source files are supported. > > But you have used selective export (feature {ANY}) which is not yet > implemented. Unfortunately I have not yet checked properly in tecomp > that you try to use this not yet implemented feature. > > If you change the line > > feature {ANY} > > to > > feature > > your code compiles well. > > > Anyhow, feature {ANY} is not the recommended style, because export to > ANY means export to all. > > By the way, as soon as you run your program, you will find out, that you > did not create the array. > > A create a.with_capacity(200) is missing. But that error will be > reported properly by tecomp. > > The bug with the segfault will be corrected in the next release. For the > time being better don't use selective export. Either export to all > (feature) or to none (feature{NONE}). > > Regards > Helmut > > |