Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #100232

Re: altering winbase.h

From Michael Holiday <Mike@example.invalid>
Newsgroups comp.lang.c
Subject Re: altering winbase.h
Date 2016-12-25 01:29 -0800
Message-ID <ec9hs7Faj8dU1@mid.individual.net> (permalink)
References <ec1853Fbd58U1@mid.individual.net> <ec1aqfFbv20U1@mid.individual.net> <ec1ockFf411U1@mid.individual.net> <o3h1og$1uk$2@dont-email.me>

Show all headers | View raw


On 12/22/2016 9:17 AM, jacobnavia wrote:
> Add this to winbase.h
> BOOLEAN WINAPI CreateSymbolicLink(LPTSTR lpSymlinkFileName,
>   LPTSTR lpTargetFileName,
>    DWORD  dwFlags
> );
>
> #define SYMBOLIC_LINK_FLAG_DIRECTORY 1

I made the change you suggested to the one of 2 winbase.h 's on this 
machine, the one I think is relevant:

Directory of C:\Perl\site\lib\auto\MinGW\include
...
12/22/2016  11:34 PM           102,458 winbase.h
...
C:\Perl\site\lib\auto\MinGW\include>type winbase.h
BOOLEAN WINAPI CreateSymbolicLink(LPTSTR lpSymlinkFileName,
   LPTSTR lpTargetFileName,
    DWORD  dwFlags
);

#define SYMBOLIC_LINK_FLAG_DIRECTORY 1

and I think I get farther with build. The way I see I see it is that the 
warnings from the C part turn into errors on the following, g++ step.

C:\Users\Fred\Documents\Win32-LongPath-master\Win32-LongPath-master>dmake
...
gcc ...\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: In function `XS_Win32__LongPath_find_close':
xs\\LongPath.xs:179: warning: cast to pointer from integer of different size
... 2 more similar warnings
g++ LongPath.def -o blib\arch\auto\Win32\LongPath\LongPath.xs.dll -mdll 
-s -L"C:\STRAWB~1\perl\lib\CORE" -L"C:\STRAWB~1\c\lib" -static-libgcc 
-static-libstdc++ xs/LongPath.o 
"C:\STRAWB~1\perl\lib\CORE\libperl524.a" -lmoldname -lkernel32 -luser32 
-lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 
-lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 
-lcomctl32 -Wl,--enable-auto-image-base
g++.exe: unrecognized option `-static-libstdc++'
xs/LongPath.o:LongPath.c:(.text+0xef): undefined reference to 
`_imp__Perl_sv_2pv_flags'
... 100 similar lines
xs/LongPath.o:LongPath.c:(.text+0x2c76): undefined reference to 
`_imp__Perl_xs_boot_epilog'
collect2: ld returned 1 exit status
dmake.exe:  Error code 129, while making 
'blib\arch\auto\Win32\LongPath\LongPath.xs.dll'

C:\Users\Fred\Documents\Win32-LongPath-master\Win32-LongPath-master>

I thought I might try to find a windows sdk for windows 10, and 
downloaded something that took an hour to install without moving the 
needle on this. So I'm stuck, and this doesn't even seem to be a C 
question anymore, so I'm ready to move on unless someone has a bright 
idea or an average one that I've missed.

Merry Xmas
-- 
Michael

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

altering winbase.h Michael Holiday <Mike@example.invalid> - 2016-12-21 21:54 -0800
  Re: altering winbase.h Michael Holiday <Mike@example.invalid> - 2016-12-21 22:40 -0800
    Re: altering winbase.h jacobnavia <jacob@jacob.remcomp.fr> - 2016-12-22 09:24 +0100
      Re: altering winbase.h Michael Holiday <Mike@example.invalid> - 2016-12-22 02:37 -0800
        Re: altering winbase.h jacobnavia <jacob@jacob.remcomp.fr> - 2016-12-22 18:12 +0100
    Re: altering winbase.h Michael Holiday <Mike@example.invalid> - 2016-12-22 02:31 -0800
      Re: altering winbase.h jacobnavia <jacob@jacob.remcomp.fr> - 2016-12-22 18:17 +0100
        Re: altering winbase.h Michael Holiday <Mike@example.invalid> - 2016-12-25 01:29 -0800
          Re: altering winbase.h jacobnavia <jacob@jacob.remcomp.fr> - 2016-12-25 11:58 +0100
            C tools for perl Michael Holiday <Mike@example.invalid> - 2017-01-26 23:30 -0800
        Re: altering winbase.h Keith Thompson <kst-u@mib.org> - 2016-12-25 12:17 -0800
          Re: altering winbase.h jacobnavia <jacob@jacob.remcomp.fr> - 2016-12-25 22:46 +0100
            Re: altering winbase.h Keith Thompson <kst-u@mib.org> - 2016-12-25 15:17 -0800

csiph-web