import doesn't import jpg

2012-09-04 Thread Zhenya
immutable char[] texture = import(Chrysanthemum.jpg); fails with message: unrecognized type jpg but why?

Re: import doesn't import jpg

2012-09-04 Thread Andrej Mitrovic
On 9/4/12, Zhenya zh...@list.ru wrote: immutable char[] texture = import(Chrysanthemum.jpg); Works for me on win32 DMD2.060 and with -J. switch. Which system/compiler are you using?

Re: import doesn't import jpg

2012-09-04 Thread Zhenya
On Tuesday, 4 September 2012 at 19:04:33 UTC, Zhenya wrote: On Tuesday, 4 September 2012 at 19:03:03 UTC, Andrej Mitrovic wrote: On 9/4/12, Zhenya zh...@list.ru wrote: immutable char[] texture = import(Chrysanthemum.jpg); Works for me on win32 DMD2.060 and with -J. switch. Which

Re: import doesn't import jpg

2012-09-04 Thread Zhenya
On Tuesday, 4 September 2012 at 19:03:03 UTC, Andrej Mitrovic wrote: On 9/4/12, Zhenya zh...@list.ru wrote: immutable char[] texture = import(Chrysanthemum.jpg); Works for me on win32 DMD2.060 and with -J. switch. Which system/compiler are you using? DMD 2.060 Win32 with -J switch too

Re: import doesn't import jpg

2012-09-04 Thread Andrej Mitrovic
On 9/4/12, Zhenya zh...@list.ru wrote: -J Chrysanthemium.jpg That's the issue. -J needs to be followed by a path, e.g. -J. (notice the dot), or -JC:\some\folder, and no spaces so don't use -J C:\some\folder. Remember that you're putting a directory path, not a file path with -J.

Re: import doesn't import jpg

2012-09-04 Thread Zhenya
On Tuesday, 4 September 2012 at 19:38:08 UTC, Andrej Mitrovic wrote: On 9/4/12, Zhenya zh...@list.ru wrote: -J Chrysanthemium.jpg That's the issue. -J needs to be followed by a path, e.g. -J. (notice the dot), or -JC:\some\folder, and no spaces so don't use -J C:\some\folder. Remember that