IRIX and Software

Odd c99 error

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
If you want to build an n32 binary you have to use /usr/lib32 instead of /usr/lib.
:Tezro: :Fuel: :Octane2: :Octane: :Onyx2: :O2+: :O2: :Indy: :Indigo: :Cube:
oh thanks

I wasn't trying to compile this myself I was trying to get through a php 5.5.9 compile and it was barfing on this.

I'll modify the configure options and try agaain

Thanks
If you want to port something to Irix, it's worth to look at the release notes of previous nekoware ports. You find is a php version 5.2.17 in beta.
:Tezro: :Fuel: :Octane2: :Octane: :Onyx2: :O2+: :O2: :Indy: :Indigo: :Cube:
I got the configure seetings from the previous release but it appears that I may have missed something

Cheers
before taking on something bigger like php 5.5.x you might wanna make yourself familiar with irix for a bit