[Bug 50670] wineg++ cannot compile programs using shobjidl.h as of Wine 6.2

WineHQ Bugzilla wine-bugs at winehq.org
Mon Feb 15 09:17:23 CST 2021


https://bugs.winehq.org/show_bug.cgi?id=50670

Marcos Gutiérrez Batz <sacrom at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sacrom at gmail.com

--- Comment #1 from Marcos Gutiérrez Batz <sacrom at gmail.com> ---
I've been hit by the same problem, the problem lies in the interface
IFileOperation of the shobjidl.idl, the function:

HRESULT NewItem([in] IShellItem *folder, [in] DWORD attributes,
                    [in, unique, string] LPCWSTR name, [in, unique, string]
LPCWSTR template,
                    [in, unique] IFileOperationProgressSink *sink);

While the Windows SDK file counterpart:

    HRESULT NewItem(
        [in] IShellItem *psiDestinationFolder,
        [in] DWORD dwFileAttributes,
        [in, unique, string] LPCWSTR pszName,
        [in, unique, string] LPCWSTR pszTemplateName,
        [in, unique] IFileOperationProgressSink *pfopsItem);

This is show with just this simple test:

$ cat test.c 

#include <shlobj.h>

void main(void)
{
}

$ winegcc test.c 
$ wineg++ test.c 
In file included from /opt/wine-devel/include/wine/windows/shlobj.h:27,
                 from test.c:2:
/opt/wine-devel/include/wine/windows/shobjidl.h:16504:17: error: expected ‘,’
or ‘...’ before ‘template’
16504 |         LPCWSTR template,
      |                 ^~~~~~~~
test.c:4:1: error: ‘::main’ must return ‘int’
    4 | void main(void)
      | ^~~~
winegcc: /usr/bin/g++ failed
$

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list