atlbase.h не найден (VS2008) - PullRequest
       17

atlbase.h не найден (VS2008)

0 голосов
/ 10 августа 2011

Обычно я пытаюсь скомпилировать CEF на VS2008 EE.

IDE жалуется, что не может найти atlbase.h.Во время некоторых исследований я нашел эту ссылку .Учитывая, что это не первый раз, когда я даю C ++ еще один шанс, я не был удивлен, что у меня уже установлен WinSDK.Но, конечно, среда IDE этого не знает, и инструмент регистрации SDK, похоже, не работает (даже если он говорит, что это так).

Итак, я перешел к параметрам проекта и принудительно добавилпути к исходным папкам WinSDK.Это помогло мне избавиться от «atlbase.h not found» .Вместо этого у меня появилось несколько ошибок;На самом деле, некоторые из них были довольно загадочными, например, _Module не определен.

Это ошибки:

Compiling...
uiplugin_test.cpp
uiplugin.cpp
string_util.cpp
scheme_test.cpp
resource_util_win.cpp
plugin_test.cpp
SDK\Include\atl\atlwin.h(65) : error C2065: '_Module' : undeclared identifier
SDK\Include\atl\atlwin.h(79) : error C2065: '_Module' : undeclared identifier
SDK\Include\atl\atlwin.h(155) : error C2065: '_Module' : undeclared identifier
SDK\Include\atl\atlwin.h(155) : error C2228: left of '.GetModuleInstance' must have class/struct/union
        type is ''unknown-type''
SDK\Include\atl\atlwin.h(168) : error C2065: '_Module' : undeclared identifier
SDK\Include\atl\atlwin.h(168) : error C2228: left of '.GetModuleInstance' must have class/struct/union
        type is ''unknown-type''
SDK\Include\atl\atlwin.h(1753) : error C2065: 'i' : undeclared identifier
SDK\Include\atl\atlwin.h(1753) : error C2065: 'i' : undeclared identifier
SDK\Include\atl\atlwin.h(1753) : error C2065: 'i' : undeclared identifier
SDK\Include\atl\atlwin.h(1755) : error C2065: 'i' : undeclared identifier
SDK\Include\atl\atlwin.h(1757) : error C2065: 'i' : undeclared identifier
SDK\Include\atl\atlwin.h(2979) : error C2065: '_Module' : undeclared identifier
SDK\Include\atl\atlwin.h(2979) : error C2228: left of '.GetModuleInstance' must have class/struct/union
        type is ''unknown-type''
SDK\Include\atl\atlwin.h(3058) : error C2065: '_Module' : undeclared identifier
SDK\Include\atl\atlwin.h(3058) : error C2228: left of '.GetModuleInstance' must have class/struct/union
        type is ''unknown-type''
osrplugin_test.cpp
osrplugin.cpp
extension_test.cpp
download_handler.cpp
clientplugin.cpp
SDK\Include\atl\atlwin.h(65) : error C2065: '_Module' : undeclared identifier
SDK\Include\atl\atlwin.h(79) : error C2065: '_Module' : undeclared identifier
SDK\Include\atl\atlwin.h(155) : error C2065: '_Module' : undeclared identifier
SDK\Include\atl\atlwin.h(155) : error C2228: left of '.GetModuleInstance' must have class/struct/union
        type is ''unknown-type''
SDK\Include\atl\atlwin.h(168) : error C2065: '_Module' : undeclared identifier
SDK\Include\atl\atlwin.h(168) : error C2228: left of '.GetModuleInstance' must have class/struct/union
        type is ''unknown-type''
SDK\Include\atl\atlwin.h(1753) : error C2065: 'i' : undeclared identifier
SDK\Include\atl\atlwin.h(1753) : error C2065: 'i' : undeclared identifier
SDK\Include\atl\atlwin.h(1753) : error C2065: 'i' : undeclared identifier
SDK\Include\atl\atlwin.h(1755) : error C2065: 'i' : undeclared identifier
SDK\Include\atl\atlwin.h(1757) : error C2065: 'i' : undeclared identifier
SDK\Include\atl\atlwin.h(2979) : error C2065: '_Module' : undeclared identifier
SDK\Include\atl\atlwin.h(2979) : error C2228: left of '.GetModuleInstance' must have class/struct/union
        type is ''unknown-type''
SDK\Include\atl\atlwin.h(3058) : error C2065: '_Module' : undeclared identifier
SDK\Include\atl\atlwin.h(3058) : error C2228: left of '.GetModuleInstance' must have class/struct/union
        type is ''unknown-type''
client_popup_handler.cpp
client_handler_win.cpp
client_handler.cpp
cefclient_win.cpp
.\cefclient_win.cpp(296) : error C3861: 'wcscpy_s': identifier not found
cefclient.cpp
SDK\Include\crt\utility(21) : error C2536: 'std::pair<_T1,_T2>::std::pair<_T1,_T2>::first' : cannot specify explicit initializer for arrays
        with
        [
            _T1=const char [12],
            _T2=const char [16]
        ]
        SDK\Include\crt\utility(24) : see declaration of 'std::pair<_T1,_T2>::first'
        with
        [
            _T1=const char [12],
            _T2=const char [16]
        ]
        SDK\Include\crt\utility(20) : while compiling class template member function 'std::pair<_T1,_T2>::pair(_T1 (&),_T2 (&))'
        with
        [
            _T1=const char [12],
            _T2=const char [16]
        ]
        .\cefclient.cpp(92) : see reference to class template instantiation 'std::pair<_T1,_T2>' being compiled
        with
        [
            _T1=const char [12],
            _T2=const char [16]
        ] SDK\Include\crt\utility(21) : error C2536: 'std::pair<_T1,_T2>::std::pair<_T1,_T2>::second' : cannot specify explicit initializer for arrays
        with
        [
            _T1=const char [12],
            _T2=const char [16]
        ]
        SDK\Include\crt\utility(25) : see declaration of 'std::pair<_T1,_T2>::second'
        with
        [
            _T1=const char [12],
            _T2=const char [16]
        ]
binding_test.cpp

Ответы [ 2 ]

0 голосов
/ 10 августа 2011

Я нашел решение этой проблемы. Несколько минут назад я понял, что у них также есть рабочая версия для Delphi.

Через пару минут я установил Delphi с правильными путями, и теперь он прекрасно собирается.

0 голосов
/ 10 августа 2011

Пробовали ли вы следовать инструкциям Chromium Build (Windows) ? В частности, в разделе Дополнительные (бесплатные) загрузки , посвященном Visual Studio 2008 Express (элемент 4 здесь ).

...