digitalmars.D.learn - import doesn't import jpg
- Zhenya (3/3) Sep 04 2012 immutable char[] texture = import("Chrysanthemum.jpg");
- Andrej Mitrovic (3/4) Sep 04 2012 Works for me on win32 & DMD2.060 and with "-J." switch. Which
- Zhenya (4/8) Sep 04 2012 DMD 2.060 Win32
- Zhenya (3/12) Sep 04 2012 VisualD
- Andrej Mitrovic (5/6) Sep 04 2012 That's the issue. -J needs to be followed by a path, e.g. -J. (notice
- Zhenya (3/11) Sep 04 2012 Thank you very much:)
immutable char[] texture = import("Chrysanthemum.jpg"); fails with message: unrecognized type jpg but why?
Sep 04 2012
On 9/4/12, Zhenya <zheny 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?
Sep 04 2012
On Tuesday, 4 September 2012 at 19:03:03 UTC, Andrej Mitrovic wrote:On 9/4/12, Zhenya <zheny list.ru> wrote:DMD 2.060 Win32 with -J switch tooimmutable char[] texture = import("Chrysanthemum.jpg");Works for me on win32 & DMD2.060 and with "-J." switch. Which system/compiler are you using?
Sep 04 2012
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:VisualD -J Chrysanthemium.jpgOn 9/4/12, Zhenya <zheny list.ru> wrote:DMD 2.060 Win32 with -J switch tooimmutable char[] texture = import("Chrysanthemum.jpg");Works for me on win32 & DMD2.060 and with "-J." switch. Which system/compiler are you using?
Sep 04 2012
On 9/4/12, Zhenya <zheny list.ru> wrote:-J Chrysanthemium.jpgThat'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.
Sep 04 2012
On Tuesday, 4 September 2012 at 19:38:08 UTC, Andrej Mitrovic wrote:On 9/4/12, Zhenya <zheny list.ru> wrote:Thank you very much:)-J Chrysanthemium.jpgThat'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.
Sep 04 2012