[Omake] Problems with TryCompileC etc.

Christopher L Conway cconway at cs.nyu.edu
Tue Sep 2 09:49:26 PDT 2008


On Tue, Sep 2, 2008 at 8:44 AM, John Billings <jnb26 at cam.ac.uk> wrote:
> Hello,
>
> I've been having problems with some of the autoconf functions.
> As a minimal example, the following (in an otherwise empty OMakefile)
> always returns false:
>
>  echo $(TryCompileC 'int main() { return 0; }')
>
> Do you have any hints how to get this working?

This bit me early on as well: OMake string literals start with $, then
a single or double quote (or a sequence of single or double quotes).
In the above, 'int main() { return 0; }')  is interpreted a string
that includes the quotation marks. The following returns true:

    echo $(TryCompileC $'int main() { return 0; }')

See here for more information:
http://omake.metaprl.org/manual/omake-doc.html#htoc478

Regards,
Chris

>
> Cheers,
>
> John
> _______________________________________________
> Omake mailing list
> Omake at metaprl.org
> https://lists.metaprl.org/mailman/listinfo/omake
>
>


More information about the Omake mailing list