From 796866862f43c7f96d5356a8f30f4c5118f03302 Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 18 Aug 2002 13:24:19 +0000 Subject: updated --- libtcc_test.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libtcc_test.c') diff --git a/libtcc_test.c b/libtcc_test.c index 1c87f78..a9c379e 100644 --- a/libtcc_test.c +++ b/libtcc_test.c @@ -44,6 +44,9 @@ int main(int argc, char **argv) exit(1); } + /* MUST BE CALLED before any compilation or file loading */ + tcc_set_output_type(s, TCC_OUTPUT_MEMORY); + tcc_compile_string(s, my_program); /* as a test, we add a symbol that the compiled program can be -- cgit v1.3.1