tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Re: TCC:cannot find -l"xyz.dll"


From: Joshua Phillips
Subject: Re: [Tinycc-devel] Re: TCC:cannot find -l"xyz.dll"
Date: Wed, 8 Apr 2009 13:51:58 +0000
User-agent: KMail/1.9.10

strcmp definitely does not use regular expressions!

With regards to file.c and file.C, although the Windows filesystem isn't case 
sensitive, the build system (make, or scons, or just running the command 
manually) passes the filenames to the compiler without losing case.

On Tuesday 07 April 2009 22:01:53 lostgallifreyan wrote:
> Joshua Phillips <address@hidden> wrote:
> (07/04/2009 21:55)
>
> >The behaviour of gcc, and therefore the behaviour, I suspect, of many
> > other projects trying to be as gcc-compatible as possible, interpret:
> >file.c - C source code which musd be preprocessed
> >file.cc, file.cp, file.cxx, file.cpp, file.CPP, file.c++, file.C - C++
> > source code which must be preprocessed
> >and many other suffixes (see the gcc manpage)
>
> Ok, so a possible snag with the .C (which looks to me like a bad decision
> because many other and better ways to specify C++ files exist, (as do
> chances of typographical error if only case change determines difference)).
>
> The case for using .C as C++ is weak because it can never be fully portable
> to all platforms for the simple reason that Win32 had no case sensitivity
> for filenames. Standard practise is use .cpp if you mean C++. (Or even use
> c++ where + is not a reserved character).
>
> As TCC doesn't handle C++ anyway, and people can be expected to only
> attempt to compile C files with it, how about modifying the code in tcc.c
> to allow .C? I'll certainly be doing this in a local copy for my own use
> once I learn how to get TCC to compile itself.
>
>     if (flags & AFF_PREPROCESS) {
>         ret = tcc_preprocess(s1);
>     } else if (!ext[0] || !strcmp(ext, "c")) {
>         /* C file assumed */
>
> I suggest changing "c" here to "[Cc]" assuming regexp works in C like this.
>
> A similar change for .def to be same as .DEF would be nice though that
> might conflict with something more significant on OS's other than Win32.
> Extension .o and .O turns out not to be an issue, TCC likes both. Not tried
> .a and .A yet.
>
>
>
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/tinycc-devel


Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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