tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Fwd: Use CString to concat linker options


From: Gabriel Corneanu
Subject: Re: [Tinycc-devel] Fwd: Use CString to concat linker options
Date: Wed, 11 Apr 2012 11:14:27 +0200

Hi,
I had the same problem.
Why don't you just modify build-tcc.bat to build tcc with
"-DONE_SOURCE" also (just like libtcc)?

I also have a simple change request; can someone add this simple patch
to add "nostdlib" to libtcc?
Or is there anything against it?

Regards,
Gabriel

On Tue, Apr 10, 2012 at 4:37 PM, Thomas Preud'homme <address@hidden> wrote:
> Le lundi 9 avril 2012 23:52:42, Thomas Preud'homme a écrit :
>> Le lundi 9 avril 2012 23:48:45, Daniel Glöckner a écrit :
>> > On Mon, Apr 09, 2012 at 05:39:48PM +0200, Thomas Preud'homme wrote:
>> > > A few days ago[0] I received an email from someone who can't compile
>> > > tcc since I introduce the use of CString to concat linker options.
>> > > Unfortunetely, I cannot reproduce this bug. Can anyone with Windows
>> > > reproduce it?
>> >
>> > On Mon, Apr 05, 2012 at 09:23:07AM -0700, Lance Mason wrote:
>> > > C:\WINDOWS\Users\ADMINI~1\Temp\ccdQYZqL.o:tcc.c:(.text+0x64): undefined
>> > > referenc e to `cstr_new'
>> > > C:\WINDOWS\Users\ADMINI~1\Temp\ccdQYZqL.o:tcc.c:(.text+0x427):
>> > > undefined referen ce to `cstr_ccat'
>> > > C:\WINDOWS\Users\ADMINI~1\Temp\ccdQYZqL.o:tcc.c:(.text+0x437):
>> > > undefined referen ce to `cstr_cat'
>> > > C:\WINDOWS\Users\ADMINI~1\Temp\ccdQYZqL.o:tcc.c:(.text.startup+0x416):
>> > > undefined reference to `cstr_free'
>> > > collect2: ld returned 1 exit status
>> >
>> > The build-tcc.bat batch file builds libtcc with -DONE_SOURCE, which
>> > makes the cstr_* functions static, so they are not found when tcc.exe
>> > is linked.
>> >
>> >   Daniel
>> >
>> > _______________________________________________
>> > Tinycc-devel mailing list
>> > address@hidden
>> > https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>>
>> Thanks. I can then work on a fix tomorrow.
>>
>> Thomas Preud'homme
>
> Except creating a public function to do the concatenation in libtcc.c, I
> couldn't find any solution. I thus reverted the last commit.
>
> Best regards,
>
> Thomas Preud'homme
>
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>

Attachment: libtcc.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]