NEWBIE: Extending Python with C

engsol at teleport.com engsol at teleport.com
Sat Nov 9 15:06:35 EST 2002


On 09 Nov 2002 04:53:13 GMT, Grant Edwards <grante at visi.com> wrote:
<snip>
>> The first stumbling block is that the books offer examples of C code which
>> don't seem to have a main(). My compilers don't care for that too much.
>
>Your C compiler cares not a whit whether there's a main() or not. I suspect
>that your linker combined with your default C run time libraries do, though.

You're right! I looked at the compiler manual, and realized I'd set the defaults to
"compile/link" ( one-step source --> exe ). I compiled "nomain.c" in compile only mode,,
and it was as happy as a clam...thanks.

Norm





More information about the Python-list mailing list