linking problems

decker

Registered
Hi. So I've got this G5 that didn't come with gcc. What it did come with though was a december 2002 developer tools package. So I installed that and I had gcc. But then optimization flags didn't work at all. Come to find out, the dec 2002 developer tools are for OS X 10.2, whereas I had OS X 10.3. What I really needed was the xcode tools. So I went and installed those and boy did that trash my system. So, I reinstalled the whole OS, then xcode tools, and I was set. Or so I thought. I went to compile my application again, and now it refuses to link. And while I couldn't optimize anything before, I could link everything together and run it. But now I get this error:

1586-109 (U) Input file "/Projects/CMAQ_v4.3/lib/stenex/Darwin/libsef90.a" cannot be processed. An input file must be either an object file, an import file, or an archive.

If I run "file /Projects/CMAQ_v4.3/lib/stenex/Darwin/libsef90.a" then it tells me this:

/Projects/CMAQ_v4.3/lib/stenex/Darwin/libsef90.a: current ar archive

So would anyone have any ideas?
 
Try this:

Do a "Clean all" and then rebuild.

If it still doesn't work, do a:

ranlib /Projects/CMAQ_v4.3/lib/stenex/Darwin/libsef90.a

then clean all and rebuild.

BTW, I wouldn't advise storing your projects at the root of the drive. They'd be better off as a subdirectory of your home directory.

Wade
 
Back
Top