Re: GNU AS and multiplatform example ...



Frank,

Thankyou too for a detailed response. The 'as' worked without error but
the gcc didn't ...
<pre>
$ gcc -o myprog myprog.o
myprog.o:fake:(.text+0x6): undefined reference to `printf'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o)::
undefined r
eference to `_WinMain@16'
collect2: ld returned 1 exit status
</pre>

Why do you use NASM rather than GAS or say YASM ?

Rgs, James.

.



Relevant Pages

  • Re: Question about compiling files
    ... would be as follows (with representing a hard tab character): ... CC = gcc ... $$-o myprog main.o myfile.o ... .PHONY: clean ...
    (comp.lang.c)
  • Re: Question about compiling files
    ... would be as follows (with representing a hard tab character): ... CC = gcc ... $$-o myprog main.o myfile.o ... ..PHONY: clean ...
    (comp.lang.c)
  • Re: C programming
    ... jam wrote: ... $ gcc -o myprog myprog.c ... I speak only for myself, and I am unanimous in that! ...
    (Fedora)
  • Re: C programming
    ... jam wrote: ... $ gcc -o myprog myprog.c ... for thou art crunchy and taste good with Ketchup! ...
    (Fedora)