MiG™
11-30-2007, 10:37 AM
So i finally got the toolchain installed, but now when I compile it in Cygwin, I get this:

$ make
arm-apple-darwin-gcc -c hello.m -o hello.o
arm-apple-darwin-gcc -c HelloApplication.m -o HelloApplication.o
arm-apple-darwin-gcc -lobjc -framework CoreFoundation -framework Foundation -fra
mework UIKit -framework LayerKit -o Hello hello.o HelloApplication.o
/usr/local/bin/arm-apple-darwin-ld: /usr/local/share/iphone-filesystem/usr/lib/l
ibstdc++.6.dylib truncated or malformed object (mach header extends past the end
of the file)
collect2: ld returned 1 exit status
make: *** [Hello] Error 1

Fixed the symlinks numerous times now, opened up the offending file but no joy.

Any ideas?

SkylarEC
11-30-2007, 10:47 AM
That is an easy enough fix. Take the libSystem.B.dylib and make two copies of it. Name the copies libc.dylib and libSystem.dylib then try to recompile the HelloWorld.

MiG™
11-30-2007, 10:52 AM
That is an easy enough fix. Take the libSystem.B.dylib and make two copies of it. Name the copies libc.dylib and libSystem.dylib then try to recompile the HelloWorld.

Same error. But I am unsure as to why you would think that would work when the file in question is libstdc++.

SkylarEC
11-30-2007, 11:08 AM
Whoops, I didn't catch the C++ part. I don't have my computer in front of me, so I can't tell you exactly which file you need to copy, but just look at which file libstcc++.6.dylib points to and do the exact same procedure, copy and rename.

I had more luck doing things that way than I did by setting the links,

MiG™
11-30-2007, 11:22 AM
Whoops, I didn't catch the C++ part. I don't have my computer in front of me, so I can't tell you exactly which file you need to copy, but just look at which file libstcc++.6.dylib points to and do the exact same procedure, copy and rename.

I had more luck doing things that way than I did by setting the links,

OOooooohhhh.

Toolchain now installed and HelloWorld Compiled :cool:

Cheers.