Re: [Tinycc-devel] Undefined symbol '__ashldi3'

2019-03-14 Thread Michael Matz
cally, all I did was to call both with of these: > > > > > > > > > > > > > > > >tcc_set_lib_path > > > > > > > >tcc_add_library_path > > > > > > > > > > > > > > > > before calling tcc_com

Re: [Tinycc-devel] Undefined symbol '__ashldi3'

2019-03-13 Thread Andy Goth
at I did originally). > > > > > > The path that I passed to those functions has a sub-folder called lib > that > > > contains libtcc1-32.a and libtcc1-64.a, > > > > > > > > > > > > Not sure it’s that simple in tcc4tccl but hope tha

Re: [Tinycc-devel] Undefined symbol '__ashldi3'

2019-03-13 Thread Michael Matz
but that’s what I did originally). > > > > The path that I passed to those functions has a sub-folder called lib that > > contains libtcc1-32.a and libtcc1-64.a, > > > > > > > > Not sure it’s that simple in tcc4tccl but hope that helps. > > > >

Re: [Tinycc-devel] Undefined symbol '__ashldi3'

2019-03-13 Thread Louis Botha
: [cid:image001.jpg@01D4D92F.879C8860] Best regards, Louis From: Tinycc-devel On Behalf Of Andy Goth Sent: Tuesday, March 12, 2019 7:18 PM To: tinycc-devel@nongnu.org Subject: Re: [Tinycc-devel] Undefined symbol '__ashldi3' (Sorry for top-posting. I'm forced to use Gmail on my phone.) I've made

Re: [Tinycc-devel] Undefined symbol '__ashldi3'

2019-03-12 Thread Andy Goth
th that I passed to those functions has a sub-folder called lib that > contains libtcc1-32.a and libtcc1-64.a, > > > > Not sure it’s that simple in tcc4tccl but hope that helps. > > > > Best regards, > > Louis > > > > *From:* Tinycc-devel nextivityinc@nongnu

Re: [Tinycc-devel] Undefined symbol '__ashldi3'

2019-03-12 Thread Louis Botha
@nongnu.org Subject: Re: [Tinycc-devel] Undefined symbol '__ashldi3' My application is a Tcl interpreter, so it doesn't directly link with libtcc1.a and rather tries to dynamically load it. This is working fine with 32-bit Linux but not Windows. In trying to force linking with libtcc1.a, I hit more

Re: [Tinycc-devel] Undefined symbol '__ashldi3'

2019-03-11 Thread Andy Goth
My application is a Tcl interpreter, so it doesn't directly link with libtcc1.a and rather tries to dynamically load it. This is working fine with 32-bit Linux but not Windows. In trying to force linking with libtcc1.a, I hit more problems. The main issue is that without "-Wl,-whole-archive", the

Re: [Tinycc-devel] Undefined symbol '__ashldi3'

2019-03-08 Thread Michael Matz
Hi, On Fri, 8 Mar 2019, Andy Goth wrote: > On Fri, Mar 8, 2019, 00:46 Andy Goth wrote: > > > With tcc4tcl 0.30 (tcc 0.9.26) compiled with MXE GCC 5.4.0, I get the > > following error: > > > > I left out a critical detail. This is 32-bit Windows MXE GCC. I haven't > tried 64-bit Windows yet,

Re: [Tinycc-devel] Undefined symbol '__ashldi3'

2019-03-07 Thread Andy Goth
On Fri, Mar 8, 2019, 00:46 Andy Goth wrote: > With tcc4tcl 0.30 (tcc 0.9.26) compiled with MXE GCC 5.4.0, I get the > following error: > I left out a critical detail. This is 32-bit Windows MXE GCC. I haven't tried 64-bit Windows yet, but it works fine in both 32- and 64-bit Linux.

[Tinycc-devel] Undefined symbol '__ashldi3'

2019-03-07 Thread Andy Goth
With tcc4tcl 0.30 (tcc 0.9.26) compiled with MXE GCC 5.4.0, I get the following error: % tcc4tcl::cproc test {Tcl_WideInt a int b} Tcl_WideInt {return a << b;} tcc: error: undefined symbol '__ashldi3' relocating failed This is only a problem in Windows, and it's working fine in Linux (GCC