wrapper build WTF

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

wrapper build WTF

Postby idldmit » Tue Sep 26, 2017 9:58 am

Trying to build cpp wrapper for cygwin and facing inconsistency below. Is this a dev joke?

include/base/internal/cef_logging.h
Code: Select all
#if defined(OS_WIN)
typedef unsigned long SystemErrorCode;


libcef_dll/base/cef_logging.cc
Code: Select all
#if defined(OS_WIN)
// This has already been defined in the header, but defining it again as DWORD
// ensures that the type used in the header is equivalent to DWORD. If not,
// the redefinition is a compile error.
typedef DWORD SystemErrorCode;
idldmit
Newbie
 
Posts: 2
Joined: Tue Sep 26, 2017 9:47 am

Re: wrapper build WTF

Postby magreenblatt » Wed Sep 27, 2017 4:32 am

Cygwin is not supported. You should build using standard platform tools (e.g. cmd.exe and Visual Studio on Windows).
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: wrapper build WTF

Postby idldmit » Wed Sep 27, 2017 5:20 am

Cygwin is just what I'm using to build it (by the way it was successfully done).
The initial problem is not related to building tools. This pitfall is totally coded and as per dev comment, it will fall all the time because type declarations are different when OS_WIN is defined.
Am I missing something?
idldmit
Newbie
 
Posts: 2
Joined: Tue Sep 26, 2017 9:47 am

Re: wrapper build WTF

Postby Czarek » Thu Sep 28, 2017 12:46 am

See: https://msdn.microsoft.com/en-us/librar ... 51(v=vs.85).aspx

Code: Select all
DWORD   
A 32-bit unsigned integer. The range is 0 through 4294967295 decimal.
This type is declared in IntSafe.h as follows:
typedef unsigned long DWORD;
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

Users browsing this forum: W3C [Validator] and 110 guests