f



altering winbase.h

I have a C problem that has manifest itself thru the holidays as well as 
a wanton attack on territory I swore to defend in Berlin. I chose to 
renew my news policy from the free university, where they always said 
I'd be back. I loved paying valued taxes on the transaction about as 
much as I love Berlin.

I present with an implementation-specific compile problem. I should make 
a short post to see whether I'm actually making it thru to post source....
--
Mike

~~Das sind keere Erdbeeren.
0
Michael
12/22/2016 5:54:42 AM
comp.lang.c 30657 articles. 5 followers. spinoza1111 (3246) is leader. Post Follow

6 Replies
655 Views

Similar Articles

[PageSpeed] 59

On 12/21/2016 9:54 PM, Michael Holiday wrote:
> I have a C problem that has manifest itself thru the holidays as well as
> a wanton attack on territory I swore to defend in Berlin. I chose to
> renew my news policy from the free university, where they always said
> I'd be back. I loved paying valued taxes on the transaction about as
> much as I love Berlin.
>
> I present with an implementation-specific compile problem. I should make
> a short post to see whether I'm actually making it thru to post source....
> --
> Mike
>
> ~~Das sind keere Erdbeeren.


C:\Users\Fred\Documents\Win32-LongPath-master\Win32-LongPath-master>dir
  Volume in drive C is Windows8_OS
  Volume Serial Number is 3052-CD20

  Directory of 
C:\Users\Fred\Documents\Win32-LongPath-master\Win32-LongPath-master

12/20/2016  03:18 PM    <DIR>          .
12/20/2016  03:18 PM    <DIR>          ..
12/20/2016  03:18 PM    <DIR>          blib
12/20/2016  03:14 PM             1,170 Changes
12/20/2016  03:14 PM    <DIR>          inc
12/20/2016  03:14 PM    <DIR>          lib
12/20/2016  03:18 PM                 0 LongPath.bs
12/20/2016  03:17 PM            35,108 Makefile
12/20/2016  03:14 PM             1,181 Makefile.PL
12/20/2016  03:14 PM               421 MANIFEST
12/20/2016  03:14 PM                41 MANIFEST.SKIP
12/20/2016  03:14 PM               877 META.yml
12/20/2016  03:17 PM             1,633 MYMETA.json
12/20/2016  03:17 PM               986 MYMETA.yml
12/20/2016  03:17 PM           203,218 ppport.h
12/20/2016  03:14 PM             2,389 README
12/20/2016  03:14 PM    <DIR>          t
12/20/2016  03:18 PM    <DIR>          xs
               11 File(s)        247,024 bytes
                7 Dir(s)  38,704,332,800 bytes free

C:\Users\Fred\Documents\Win32-LongPath-master\Win32-LongPath-master>dmake 
install
cp lib/Win32/LongPath.pm blib\lib\Win32\LongPath.pm
"C:\Strawberry\perl\bin\perl.exe" "-Iinc" -MExtUtils::Command::MM -e 
cp_nonempty -- LongPath.bs blib\arch\auto\Win32\LongPath\LongPath.bs 644
gcc -c  "-I." "-I."     -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE 
-DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS 
-fwrapv -fno-strict-aliasing -mms-bitfields -Wall -W -Wno-comment -s -O2 
       -DVERSION=\"1.07\"    -DXS_VERSION=\"1.07\" -o xs\LongPath.o 
"-IC:\STRAWB~1\perl\lib\CORE"  -DUSE_PPPORT -DWINVER=0x0a00 
-D_WIN32_WINNT=0x0a00 xs\LongPath.c
In file included from C:/STRAWB~1/perl/lib/CORE/hv.h:631,
                  from C:/STRAWB~1/perl/lib/CORE/perl.h:3904,
                  from xs\\LongPath.xs:21:
C:/STRAWB~1/perl/lib/CORE/hv_func.h: In function `S_perl_hash_murmur3':
C:/STRAWB~1/perl/lib/CORE/hv_func.h:403: warning: cast from pointer to 
integer of different size
xs\\LongPath.xs: In function `MakeSymbolicLink':
xs\\LongPath.xs:79: warning: implicit declaration of function 
`CreateSymbolicLinkW'
xs\\LongPath.xs:80: error: `SYMBOLIC_LINK_FLAG_DIRECTORY' undeclared 
(first use in this function)
xs\\LongPath.xs:80: error: (Each undeclared identifier is reported only once
xs\\LongPath.xs:80: error: for each function it appears in.)
xs\\LongPath.xs: In function `XS_Win32__LongPath_find_close':
xs\\LongPath.xs:179: warning: cast to pointer from integer of different size
xs\\LongPath.xs: In function `XS_Win32__LongPath_find_first_file':
xs\\LongPath.xs:191: warning: cast from pointer to integer of different size
xs\\LongPath.xs: In function `XS_Win32__LongPath_find_next_file':
xs\\LongPath.xs:281: warning: cast to pointer from integer of different size
dmake.exe:  Error code 129, while making 'xs\LongPath.o'

--

mike
0
Michael
12/22/2016 6:40:15 AM
You are using the wrong SDK headers. Your machine is misconfigured: it 
is using windows headers for windows xp
0
jacobnavia
12/22/2016 8:24:01 AM
On 12/21/2016 10:40 PM, Michael Holiday wrote:

> C:\Users\Fred\Documents\Win32-LongPath-master\Win32-LongPath-master>dmake install
>
> cp lib/Win32/LongPath.pm blib\lib\Win32\LongPath.pm
> "C:\Strawberry\perl\bin\perl.exe" "-Iinc" -MExtUtils::Command::MM -e
> cp_nonempty -- LongPath.bs blib\arch\auto\Win32\LongPath\LongPath.bs 644
> gcc -c  "-I." "-I."     -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE
> -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
> -fwrapv -fno-strict-aliasing -mms-bitfields -Wall -W -Wno-comment -s -O2
>       -DVERSION=\"1.07\"    -DXS_VERSION=\"1.07\" -o xs\LongPath.o
> "-IC:\STRAWB~1\perl\lib\CORE"  -DUSE_PPPORT -DWINVER=0x0a00
> -D_WIN32_WINNT=0x0a00 xs\LongPath.c
> In file included from C:/STRAWB~1/perl/lib/CORE/hv.h:631,
>                  from C:/STRAWB~1/perl/lib/CORE/perl.h:3904,
>                  from xs\\LongPath.xs:21:
> C:/STRAWB~1/perl/lib/CORE/hv_func.h: In function `S_perl_hash_murmur3':
> C:/STRAWB~1/perl/lib/CORE/hv_func.h:403: warning: cast from pointer to
> integer of different size
> xs\\LongPath.xs: In function `MakeSymbolicLink':
> xs\\LongPath.xs:79: warning: implicit declaration of function
> `CreateSymbolicLinkW'
> xs\\LongPath.xs:80: error: `SYMBOLIC_LINK_FLAG_DIRECTORY' undeclared
> (first use in this function)
> xs\\LongPath.xs:80: error: (Each undeclared identifier is reported only
> once
> xs\\LongPath.xs:80: error: for each function it appears in.)
> xs\\LongPath.xs: In function `XS_Win32__LongPath_find_close':
> xs\\LongPath.xs:179: warning: cast to pointer from integer of different
> size
> xs\\LongPath.xs: In function `XS_Win32__LongPath_find_first_file':
> xs\\LongPath.xs:191: warning: cast from pointer to integer of different
> size
> xs\\LongPath.xs: In function `XS_Win32__LongPath_find_next_file':
> xs\\LongPath.xs:281: warning: cast to pointer from integer of different
> size
> dmake.exe:  Error code 129, while making 'xs\LongPath.o'
>

This started out as a perl question, but is ready to die of neglect at 
the bottom of a thread. It is, essentially OT there now that it's taken 
quite the C turn:

http://www.perlmonks.org/?node_id=1178277

I was advised to define SYMBOLIC_LINK_FLAG_DIRECTORY . I ran the result 
with the same litany of errors then defined it to be 1 with the same 
result. What I seek is the command to reveal what is defined before 
compilation on the gcc implementation used by contemporary perl.
--
0
Michael
12/22/2016 10:31:48 AM
On 12/22/2016 12:24 AM, jacobnavia wrote:
> You are using the wrong SDK headers. Your machine is misconfigured: it
> is using windows headers for windows xp

Can you elaborate? (this is windows 10)
-- 
Mike
0
Michael
12/22/2016 10:37:00 AM
Le 22/12/2016 à 11:37, Michael Holiday a écrit :
> On 12/22/2016 12:24 AM, jacobnavia wrote:
>> You are using the wrong SDK headers. Your machine is misconfigured: it
>> is using windows headers for windows xp
>
> Can you elaborate? (this is windows 10)

Yes, the system is windows 10, but the include headers for the stuff you 
are compiling where do they came from?

You can run windows 10 and download the SDK for windows xp and if you 
use that, you will NOT find all the necessary functions or defines.

It could be also that you are using gcc under windows, what is never a 
good idea, and that gcc has old headers that do not include many things 
that the windows headers need.

Question:

Where do you got those include files?


0
jacobnavia
12/22/2016 5:12:17 PM
Add this to winbase.h
BOOLEAN WINAPI CreateSymbolicLink(LPTSTR lpSymlinkFileName,
   LPTSTR lpTargetFileName,
    DWORD  dwFlags
);

#define SYMBOLIC_LINK_FLAG_DIRECTORY 1
0
jacobnavia
12/22/2016 5:17:27 PM
Reply: