Hi,
I have a really simple and possibly dumb question
lets take a simple c source file
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello\n");
return 0;
}
When I compile this with
c99 -O3 -n32 -o t t.c -L/usr/lib
I get the error
Expecting n32 objects : /usr/lib/crt1.o is o32
When I compile with
c99 -O3 -n32 -o t t.c
It creates an executable
Any ideas why the -L/usr/lib should make a difference ?
Can anyone confirm this with the mipspro compiler?
Cheers
I have a really simple and possibly dumb question
lets take a simple c source file
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello\n");
return 0;
}
When I compile this with
c99 -O3 -n32 -o t t.c -L/usr/lib
I get the error
Expecting n32 objects : /usr/lib/crt1.o is o32
When I compile with
c99 -O3 -n32 -o t t.c
It creates an executable
Any ideas why the -L/usr/lib should make a difference ?
Can anyone confirm this with the mipspro compiler?
Cheers