On Monday 20 April 2009 19:42:48 Jeff Gilchrist wrote:
> On Mon, Apr 20, 2009 at 2:29 PM, Jason Moxham <[email protected]>
wrote:
> > So
> > cc jeff32.s jeff32.c -o test1
> > gives no errors
>
> cc -c jeff32.s jeff32.c gives no errors
> but linking it does. gcc gives errors as well.
that because your gcc is 64 bit
>
> > comment out this line
> > rm -f ${dummy}64.s ${dummy}64.o ${dummy}64.c ${dummy}32.s ...
> > so we dont delete the originals
> > and try
> > cc number32.s number32.c -o test1
> >
> > where number are whatever they are
>
> Same thing:
>
> $ cc dummy-453632.s dummy-453632.c -o test1
> dummy-453632.c:8: warning: return type defaults to âintâ
> dummy-453632.c: In function âmainâ:
> dummy-453632.c:26: warning: implicit declaration of function âcpuidâ
> dummy-453632.c:41: warning: implicit declaration of function âstrcmpâ
> dummy-453632.c:118: warning: implicit declaration of function âprintfâ
> dummy-453632.c:118: warning: incompatible implicit declaration of
> built-in function âprintfâ
> /tmp/cco.jzFRcr: In function `main':
> /work/jeffg/mpir-1.1/dummy-453632.c:8: multiple definition of `main'
> /tmp/cco.jzFRcr:/work/jeffg/mpir-1.1/dummy-453632.c:8: first defined here
> /tmp/cco.jzFRcr: In function `main':
> (.text+0x5b): undefined reference to `cpuid'
> /tmp/cco.jzFRcr: In function `main':
> (.text+0x76): undefined reference to `cpuid'
> /tmp/cco.jzFRcr: In function `main':
> (.text+0x5b): undefined reference to `cpuid'
> /tmp/cco.jzFRcr: In function `main':
> (.text+0x76): undefined reference to `cpuid'
> collect2: ld returned 1 exit status
>
> Does it compile for your cc?
>
gcc on a 32bit K7 compiles those files you attached No problem
gmp-4.3.0 config.guess does the same thing , can you see what files it creates
Thanks
Jason
> Jeff.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"mpir-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/mpir-devel?hl=en
-~----------~----~----~----~------~----~------~--~---