0

I'm building a small project (I'm running windows 7 with cygwin64 ). here is how my "header of program" looks like

#ifndef Win32_H
#define Win32_H

#define USE_LSA
#include <winsock2.h>
#include <windows.h>

#include <psapi.h>
#include <tlhelp32.h>

#include <stdio.h>
#include <string.h>
#define SECURITY_WIN32
#include <ntstatus.h>

#include <Sspi.h>
#include <Ntsecapi.h>
#include <Ntsecpkg.h>
#include <sddl.h>
#include <algorithm>

#include "Class1.h"

#include "Class2.h"

#include <Class3.h>

#include <errno.h>

I downloaded this project to examine. But the problem I have is that I ran into a compiling error which says

In file included from /usr/i686-w64-mingw32/sys-root/mingw/include/Sspi.h:10:0,
             from main.cpp:61:

/usr/i686-w64-mingw32/sys-root/mingw/include/ntsecapi.h:594:22: error: expected unqualified-id before string constant
typedef LSA_STRING STRING,*PSTRING;
                  ^
In file included from /usr/i686-w64-mingw32/sys-root/mingw/include/Sspi.h:10:0,
             from TokenServer.cpp:61:
/usr/i686-w64-mingw32/sys-root/mingw/include/ntsecapi.h:707:5: error: expected unqualified-id before string constant
 STRING CaseSensitiveChallengeResponse;
 ^
/usr/i686-w64-mingw32/sys-root/mingw/include/ntsecapi.h:708:5: error: expected unqualified-id before string constant
 STRING CaseInsensitiveChallengeResponse;
 ^
/usr/i686-w64-mingw32/sys-root/mingw/include/ntsecapi.h:718:5: error: expected unqualified-id before string constant
 STRING AuthenticationInfo1;
 ^
/usr/i686-w64-mingw32/sys-root/mingw/include/ntsecapi.h:719:5: error: expected unqualified-id before string constant
 STRING AuthenticationInfo2;
 ^

I've googled a little bit but found nothing that would help me this is the same problem as mine. and also this one. But as I've said they didn't help. Hope you can help me. thanks.

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
Rasty
  • 303
  • 3
  • 14

0 Answers0