Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

C compiler cannot create executables

Uhm, that's a new one i haven't seen before. I doubt that your compiler is borked (i doubt even Apple would be so bold as to break the compiler just to keep up their walled garden), but just to make sure, write a file "hello.c":

#include <stdio.h> int main() { printf("Hello, World!\n"); return 0; }

Then compile it with mininal arguments and execute it:

$ cc -o hello hello.c $ ./hello Hello, World!

If that works, you could try with the whole kaboodle of flags that the compile script thinks it should use:

$ cc -fno-common -DPERL_DARWIN -mmacosx-version-min=14.4 -DNO_POSIX_20 +08_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/ +local/include -fno-common -DPERL_DARWIN -mmacosx-version-min=14.4 - +DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-st +rong -I/usr/local/include -mmacosx-version-min=14.4 -fstack-protecto +r-strong -L/usr/local/lib -o hello hello.c $ ./hello

Does this also work or do you get any errors?

PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP

In reply to Re: cpanm Tk build errors by cavac
in thread cpanm Tk build errors by thimes

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    Domain Nodelet?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others having a coffee break in the Monastery: (1)
    As of 2024-07-25 16:18 GMT
    Find Nodes?
      Voting Booth?

      No recent polls found

      erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.