[fpc-pascal] Can't create unique type from this type
// // D3DXHANDLE: // --- // Handle values used to efficiently reference shader and effect parameters. // Strings can be used as handles. However, handles are not always strings. // type PD3DXHandle = ^TD3DXHandle; TD3DXHandle = type PAnsiChar; The type declaration "TD3DXHandle = type PAnsiChar" (they are of the same type, but not assign compatible) compiles fine in Delphi, but FPC gives the error "d3dx9.pas(1999,31) Error: Can't create unique type from this type" How do I get this type declaration to compile in FPC? I am compiling in Delphi mode (-Mdelphi) with FPC 1.9.4. Sly ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Freepascal newbie
> Yes. Actually I develop on Linux and when it's ready > I compile in > Windows and it works :) Thanks, Nicolay! I cant't wait to install and mess a little with it. I thought I could go through the whole installation proccess without asking something too stupid, but unfortunately... I still couldn't figure out how to use the fpcmake. :( Freepascal itself is working perfectly, I compiled my older code pratically free of problems (the only ones ocurred with the asm blocks - I'll take a closer look at them later). But when I try to use "fpcmake -r" in some of the Makefile.fpc files (including the PTCPas one) I get the following error: Error: Target "win32", package "rtl" not found This error also occurs when I try to fpcmake the demos/Makefile.fpc file, but strangely the demos/[anydirectory]/Makefile.fpc ones work fine: win32-i386 requires: rtl Writing Makefile After all, why sometimes the rtl package is found and others it isn't? :( Thanks, Gustavo __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Can't create unique type from this type
> // > // D3DXHANDLE: > // --- > // Handle values used to efficiently reference shader and effect > parameters. > // Strings can be used as handles. However, handles are not always > strings. > // > > type > PD3DXHandle = ^TD3DXHandle; > TD3DXHandle = type PAnsiChar; > > > The type declaration "TD3DXHandle = type PAnsiChar" (they are of the > same type, but not assign compatible) compiles fine in Delphi, but FPC > gives the error > "d3dx9.pas(1999,31) Error: Can't create unique type from this type" > > How do I get this type declaration to compile in FPC? I am compiling in > Delphi mode (-Mdelphi) with FPC 1.9.4. Compiles fine with current development version (1.9.5) ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal