Starting EMBOSS apllications without an input file...

ableasby at ableasby at
Mon May 7 16:57:04 UTC 2001


The easiest way is to write the application in the "emboss"
subdirectory. If the program is foobar.c then add foobar to (e.g.)
the bin_PROGRAMS line of and add a
foobar_SOURCES = foobar.c   too.
After that a  "make foobar" will compile the code (assuming that you
have automake installed), a plain "make" will make foobar and all
other emboss applications.

Appended is an example foobar.c. The #include imports the whole
ajax/nucleus interface and some string and file commands are shown.
Note that acd isn't used so putting an ajExit at the end would be
a bad idea.



PS: You could, of course, program emboss as usual and just have an
    acd file with just an "appl" definition there.

#include "emboss.h"

int main(int argc, char **argv)
    AjPFile outf     = NULL;
    AjPStr  filename = NULL;

    filename = ajStrNewC("stdout");

    outf = ajFileNewOut(filename);

    ajFmtPrintF(outf,"Message to stdout\n");

    return 0;

More information about the emboss-dev mailing list