Compiling DMD for the iPhone simulator

Michel Fortin michel.fortin at michelf.com
Wed Apr 25 16:51:27 PDT 2012


On 2012-04-25 20:00:42 +0000, Jacob Carlborg <doob at me.com> said:

> I'm trying to compile DMD for the iPhone simulator. I've modified the 
> makefile to point to the files (SDK, g++ and so on) in 
> <path>/iPhoneSimulator.platform. DMD compiles successfully but when I 
> run DMD without any flags it prints:
> 
> "read error, errno = 2"
> 
> And then the regular usage information. When I try to compile a file it says:
> 
> 	read error, errno = 2
> 	read error, errno = 2
> Error: cannot read file main.d

Are you running it straight from the command line? I suspect libraries 
in the simulator SDK need the simulator's environment to work, which is 
a pile of undocumented things.

I'm also quite curious about what you're trying to achieve.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/



More information about the Digitalmars-d mailing list