Le vendredi 16 mars 2012 22:31:18, grischka a écrit :
> Thomas Preud'homme wrote:
> >> $ tcc libtcc.c -DONE_SOURCE -shared -o libtcc.so -ldl
> >
> > I had to add -DTCC_IS_NATIVE
>
> Because you missed -DTCC_TARGET_X86_64 ;)
The configure did. Even if I add it to the command line it stills fails.
Thomas Preud'homme wrote:
$ tcc libtcc.c -DONE_SOURCE -shared -o libtcc.so -ldl
I had to add -DTCC_IS_NATIVE
Because you missed -DTCC_TARGET_X86_64 ;)
Btw, for general purpose dynamically grown strings, try
CString linker_arg;
--- grischka
_
Le vendredi 16 mars 2012 00:39:37, grischka a écrit :
> Thomas Preud'homme wrote:
> > Can you give me an example which fails for you?
>
> $ tcc libtcc.c -DONE_SOURCE -shared -o libtcc.so -ldl
I had to add -DTCC_IS_NATIVE
> $ tcc tests/libtcc_test.c -I. -o libtcc_test libtcc.so -ldl
> -Wl,-rpath=`p