Thread overview
import doesn't import jpg
Sep 04, 2012
Zhenya
Sep 04, 2012
Andrej Mitrovic
Sep 04, 2012
Zhenya
Sep 04, 2012
Zhenya
Sep 04, 2012
Andrej Mitrovic
Sep 04, 2012
Zhenya
September 04, 2012
immutable char[] texture = import("Chrysanthemum.jpg");
fails with message: unrecognized type jpg
but why?

September 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?
September 04, 2012
On Tuesday, 4 September 2012 at 19:03:03 UTC, Andrej Mitrovic wrote:
> 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?

DMD 2.060 Win32
with -J switch too
September 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:
>> 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?
>
> DMD 2.060 Win32
> with -J switch too

VisualD

-J Chrysanthemium.jpg
September 04, 2012
On 9/4/12, Zhenya <zheny@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.
September 04, 2012
On Tuesday, 4 September 2012 at 19:38:08 UTC, Andrej Mitrovic wrote:
> On 9/4/12, Zhenya <zheny@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.

Thank you very much:)