Re: [Tinycc-devel] Crosscompiling failed

2021-04-14 Thread Vad Rulezz
Hello! On 4/14/21 3:08 PM, Thomas Stalder wrote: After a more in-depth analysis it appears that the patch does not correct the problem because c2str is not compiled on the correct platform. The commit https://repo.or.cz/tinycc.git/commit/9f6b65230ac6b736698e740c4bc14c6c2f095f13

Re: [Tinycc-devel] Crosscompiling failed

2021-04-14 Thread Thomas Stalder
After a more in-depth analysis it appears that the patch does not correct the problem because c2str is not compiled on the correct platform. The commit  https://repo.or.cz/tinycc.git/commit/9f6b65230ac6b736698e740c4bc14c6c2f095f13 seems to be blocking cross-compilation. Do you think it is possib

[Tinycc-devel] Crosscompiling failed

2021-04-13 Thread Thomas Stalder
Hello, Since https://repo.or.cz/tinycc.git/commit/9f6b65230ac6b736698e740c4bc14c6c2f095f13 cross compiling doesn't work : btc:~/vc/a/tinycc-035ae7d/a$ ../configure --cross-prefix=arm-cortexa8-linux-gnueabihf- --cpu=armv7l Binary directory    /usr/local/bin TinyCC directory    /usr/local/lib/tcc

Re: [Tinycc-devel] Crosscompiling

2014-06-30 Thread Markus Bergholz
On Sun, Jun 29, 2014 at 11:17 PM, grischka wrote: > Markus Bergholz wrote: > >> However, both end up with "Mex file entry point it missing". >> > > __declspec(dllexport) > > This works, thank you! > -- gr > > >> Thanks in advanced, >> Markus >> > > > ___

Re: [Tinycc-devel] Crosscompiling

2014-06-29 Thread grischka
Markus Bergholz wrote: However, both end up with "Mex file entry point it missing". __declspec(dllexport) -- gr Thanks in advanced, Markus ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tiny

Re: [Tinycc-devel] Crosscompiling

2014-06-29 Thread Markus Bergholz
On Sat, Jun 28, 2014 at 6:44 PM, Michael Matz wrote: > > > On Fri, 27 Jun 2014, Markus Bergholz wrote: > >Make it clear where “mexPrintf” is defined and why it is not >> effective. >> >> >> "mexPrintf" is defined in /usr/include/octave-3.8.1/octave/mexproto.h >> afaiu. >> > > That's

Re: [Tinycc-devel] Crosscompiling

2014-06-28 Thread Michael Matz
On Fri, 27 Jun 2014, Markus Bergholz wrote: Make it clear where “mexPrintf” is defined and why it is not effective. "mexPrintf" is defined in /usr/include/octave-3.8.1/octave/mexproto.h afaiu. That's a declaration, not a definition. The definition comes from some Octave inter

Re: [Tinycc-devel] Crosscompiling

2014-06-27 Thread YX Hao
Hi, > Markus Bergholz > Sent: Saturday, June 28, 2014 2:55 AM > > On Fri, Jun 27, 2014 at 1:30 PM, YX Hao wrote: > > > Have you consider that compiler searches its own header path and header > files have environment switches. > ^ Read the whole file and check

Re: [Tinycc-devel] Crosscompiling

2014-06-27 Thread Markus Bergholz
*From:* tinycc-devel-bounces+lifenjoiner=163@nongnu.org [mailto: > tinycc-devel-bounces+lifenjoiner=163@nongnu.org] *On Behalf Of *Markus > Bergholz > *Sent:* Friday, June 27, 2014 1:16 AM > *To:* tinycc-devel@nongnu.org > *Subject:* Re: [Tinycc-devel] Crosscompiling > > &g

Re: [Tinycc-devel] Crosscompiling

2014-06-27 Thread YX Hao
=163@nongnu.org] On Behalf Of Markus Bergholz Sent: Friday, June 27, 2014 1:16 AM To: tinycc-devel@nongnu.org Subject: Re: [Tinycc-devel] Crosscompiling On Tue, Jun 24, 2014 at 11:25 PM, grischka wrote: Markus Bergholz wrote: I'd tried to compile tcc itself with build_cross=&quo

Re: [Tinycc-devel] Crosscompiling

2014-06-26 Thread Markus Bergholz
On Tue, Jun 24, 2014 at 11:25 PM, grischka wrote: > Markus Bergholz wrote: > >> I'd tried to compile tcc itself with build_cross="yes" and tried >> >> ./x86_64-win32-tcc -nostdinc -I /usr/x86_64-w64-mingw32/include/ >> ../helloworld.c -o helloworld-gcc.exe >> [...] >> >> /usr/x86_64-w64-mingw32/

Re: [Tinycc-devel] Crosscompiling

2014-06-24 Thread grischka
Markus Bergholz wrote: I'd tried to compile tcc itself with build_cross="yes" and tried ./x86_64-win32-tcc -nostdinc -I /usr/x86_64-w64-mingw32/include/ ../helloworld.c -o helloworld-gcc.exe [...] /usr/x86_64-w64-mingw32/include//vadefs.h:33: error: #error VARARGS not implemented for thi

[Tinycc-devel] Crosscompiling

2014-06-24 Thread Markus Bergholz
Hello, I'd like to crosscompile (from Linux for Windows) Matlab/Octave mex functions written in C with tcc. I can compile those files in Linux with tcc -I/usr/include/octave-3.8.1/octave/ -lm -shared mexample.c -o mexample.mex They are runable with both, Matlab and Octave without any problems. Bu