windows building error inconsistent dll linkage

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.

windows building error inconsistent dll linkage

Postby wzhsunn » Mon Apr 20, 2015 10:43 pm

Build problem on windows 2272 cef :

ninja -C out/Release cefclient
:)
Code: Select all
G:\webkit\chromium\2272\chromium\src>ninja -C out/Release cefclient
ninja: Entering directory `out/Release'
[6868/13000] ACTION cef_pak: make_pack...eader_fb59e51b3d8362ba5f54c7da9c17f591
File include/cef_pack_resources.h updated.
[6879/13000] ACTION cef_pak: make_pack...eader_fb59e51b3d8362ba5f54c7da9c17f591
File include/cef_pack_strings.h updated.
[11556/13000] CXX obj\cef\libcef\common\libcef_static.upload_element.obj

FAILED: ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Vi
sual Studio 12.0\VC\bin\amd64_x86\cl.exe" /nologo /showIncludes /FC @obj\cef\lib
cef\common\libcef_static.upload_element.obj.rsp /c ..\..\cef\libcef\common\uploa
d_element.cc /Foobj\cef\libcef\common\libcef_static.upload_element.obj /Fdobj\ce
f\libcef_static.cc.pdb

g:\webkit\chromium\2272\chromium\src\cef\libcef\common\upload_element.cc(15) : e
rror C2220: warning treated as error - no 'object' file generated
g:\webkit\chromium\2272\chromium\src\cef\libcef\common\upload_element.cc(15) : w
arning C4273: 'net::UploadElement::UploadElement' : inconsistent dll linkage
        g:\webkit\chromium\2272\chromium\src\cef\libcef\common\upload_element.h(
25) : see previous definition of '{ctor}'
g:\webkit\chromium\2272\chromium\src\cef\libcef\common\upload_element.cc(22) : w
arning C4273: 'net::UploadElement::~UploadElement' : inconsistent dll linkage
        g:\webkit\chromium\2272\chromium\src\cef\libcef\common\upload_element.h(
26) : see previous definition of '{dtor}'
[11556/13000] CXX obj\cef\libcef\common\libcef_static.upload_data.obj
FAILED: ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Vi
sual Studio 12.0\VC\bin\amd64_x86\cl.exe" /nologo /showIncludes /FC @obj\cef\lib
cef\common\libcef_static.upload_data.obj.rsp /c ..\..\cef\libcef\common\upload_d
ata.cc /Foobj\cef\libcef\common\libcef_static.upload_data.obj /Fdobj\cef\libcef_
static.cc.pdb
g:\webkit\chromium\2272\chromium\src\cef\libcef\common\upload_data.cc(12) : erro
r C2220: warning treated as error - no 'object' file generated
g:\webkit\chromium\2272\chromium\src\cef\libcef\common\upload_data.cc(12) : warn
ing C4273: 'net::UploadData::UploadData' : inconsistent dll linkage
        g:\webkit\chromium\2272\chromium\src\cef\libcef\common\upload_data.h(34)
 : see previous definition of '{ctor}'
g:\webkit\chromium\2272\chromium\src\cef\libcef\common\upload_data.cc(17) : warn
ing C4273: 'net::UploadData::AppendBytes' : inconsistent dll linkage
        g:\webkit\chromium\2272\chromium\src\cef\libcef\common\upload_data.h(36)
 : see previous definition of 'AppendBytes'
g:\webkit\chromium\2272\chromium\src\cef\libcef\common\upload_data.cc(27) : warn
ing C4273: 'net::UploadData::AppendFileRange' : inconsistent dll linkage
        g:\webkit\chromium\2272\chromium\src\cef\libcef\common\upload_data.h(38)
 : see previous definition of 'AppendFileRange'
g:\webkit\chromium\2272\chromium\src\cef\libcef\common\upload_data.cc(34) : warn
ing C4273: 'net::UploadData::~UploadData' : inconsistent dll linkage
        g:\webkit\chromium\2272\chromium\src\cef\libcef\common\upload_data.h(72)
 : see previous definition of '{dtor}'
[11556/13000] CXX obj\build\content.precompile.obj
ninja: build stopped: subcommand failed.
wzhsunn
Newbie
 
Posts: 3
Joined: Mon Apr 20, 2015 10:38 pm

Re: windows building error inconsistent dll linkage

Postby magreenblatt » Tue Apr 21, 2015 1:16 pm

What command-line did you use? Did you set any GYP environment variables or create a user gypi file?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: windows building error inconsistent dll linkage

Postby wzhsunn » Tue Apr 21, 2015 7:21 pm

magreenblatt wrote:What command-line did you use? Did you set any GYP environment variables or create a user gypi file?


Code: Select all
G:\webkit\chromium\2272\chromium\src>set GYP_GENERATORS=ninja,msvs-ninja


G:\webkit\chromium\2272\chromium\src>set GYP_MSVS_VERSION=2013
G:\webkit\chromium\2272\chromium\src>cef_create_projects.bat
G:\webkit\chromium\2272\chromium\src>ninja -C out\Release cefclient


I have build content_shell on out\release before.
:)
wzhsunn
Newbie
 
Posts: 3
Joined: Mon Apr 20, 2015 10:38 pm

Re: windows building error inconsistent dll linkage

Postby wzhsunn » Tue Apr 21, 2015 10:30 pm

magreenblatt wrote:What command-line did you use? Did you set any GYP environment variables or create a user gypi file?



I delete an
a file :chromium.gyp_env
Code: Select all
{ 'GYP_DEFINES': 'component=shared_library' }


Rerun the commands it works well !

:)
Thank you very much !
wzhsunn
Newbie
 
Posts: 3
Joined: Mon Apr 20, 2015 10:38 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 90 guests