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


Groups > comp.lang.c > #100274

Re: altering winbase.h

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: altering winbase.h
Date 2016-12-25 12:17 -0800
Organization None to speak of
Message-ID <ln4m1rahlm.fsf@kst-u.example.com> (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


jacobnavia <jacob@jacob.remcomp.fr> writes:
> Add this to winbase.h
> BOOLEAN WINAPI CreateSymbolicLink(LPTSTR lpSymlinkFileName,
>    LPTSTR lpTargetFileName,
>     DWORD  dwFlags
> );
>
> #define SYMBOLIC_LINK_FLAG_DIRECTORY 1

Disclaimer: I don't know what winbase.h is.

If it's provided by the OS or by some installable package
(another followup suggests that it's part of a Perl installation,
in C:\Perl\site\lib\auto\MinGW\include), then modifying it is
unlikely to be the best solution.  It might fix your own build
problem but if your application's source code depends on a change
to some system header it's going to be a real portability problem.

Instead, I'd suggest adding that declaration somewhere in your own
application's source code.

And if that's a missing declaration that *should* be in that header,
consider reporting the problem to the provider of that header file.
There's no winbase.h in the Perl source tree.  Perhaps it's provided
by some third party, likely Strawberry or ActiveState.

Upthread, Michael Holiday wrote:

    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.

Did you define that macro *before* the relevant #include
directive(s)?

If you mean you want to see the output of the preprocessor, you can use
"gcc -E".

I'll note again that I don't know what winbase.h is or who
provides it.  I'm making assumptions based on the directory path.

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

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