powered by simpleCommunicator - 2.0.59     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Caché, Ensemble, DeepSee, MiniM, IRIS, GT.M [игнор отключен] [закрыт для гостей] / 11 ошибок из примера "Соединение для С++"
3 сообщений из 3, страница 1 из 1
11 ошибок из примера "Соединение для С++"
    #34686516
AdmigatorR
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Люди, кто пробовал в работе пример из документации по Cache`для соединения с базой с помощью С++ Binding у меня 11 ошибок? Прикладываю файлик. Кто может подскажите ПЛИЗ.
...
Рейтинг: 0 / 0
11 ошибок из примера "Соединение для С++"
    #34686558
AdmigatorR
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
...
Рейтинг: 0 / 0
11 ошибок из примера "Соединение для С++"
    #34686565
AdmigatorR
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Не кочаеться что-то, варварски размещаю его сдесь:

------ Построение начато: Проект: Second, Конфигурация: Release Win32 ------
Compiling...
Second.cpp
l:\cache2\dev\cpp\include\t_fmt.h(169) : warning C4996: 'std::basic_istream<_Elem,_Traits>::readsome' was declared deprecated
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
L:\Program Files\Microsoft Visual Studio 8\VC\include\istream(724) : see declaration of 'std::basic_istream<_Elem,_Traits>::readsome'
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
Message: 'You have used a std:: construct that is not safe. See documentation on how to use the Safe Standard C++ Library'
l:\cache2\dev\cpp\include\t_streambuf.h(72) : warning C4244: 'return' : conversion from '__w64 int' to 'std::streamsize', possible loss of data
l:\cache2\dev\cpp\include\t_streambuf.h(79) : warning C4244: 'return' : conversion from '__w64 int' to 'std::streamsize', possible loss of data
l:\cache2\dev\cpp\include\t_streambuf.h(94) : warning C4244: 'return' : conversion from '__w64 int' to 'std::streamsize', possible loss of data
l:\cache2\dev\cpp\include\t_streambuf.h(145) : warning C4996: 'std::basic_streambuf<_Elem,_Traits>::xsgetn' was declared deprecated
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
L:\Program Files\Microsoft Visual Studio 8\VC\include\streambuf(324) : see declaration of 'std::basic_streambuf<_Elem,_Traits>::xsgetn'
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
Message: 'You have used a std:: construct that is not safe. See documentation on how to use the Safe Standard C++ Library'
l:\cache2\dev\cpp\include\t_streambuf.h(139) : warning C4244: 'return' : conversion from '__w64 int' to 'std::streamsize', possible loss of data
l:\cache2\dev\cpp\include\t_streambuf.h(175) : warning C4244: 'return' : conversion from '__w64 const int' to 'UINT4', possible loss of data
l:\cache2\dev\cpp\include\t_iostream.h(288) : warning C4267: 'argument' : conversion from 'size_t' to 'std::streamsize', possible loss of data
l:\cache2\dev\cpp\include\abs_types.h(128) : warning C4267: 'return' : conversion from 'size_t' to 'byte_size_t', possible loss of data
l:\cache2\dev\cpp\include\prim_types.h(148) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\prim_types.h(157) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\prim_types.h(192) : warning C4267: 'argument' : conversion from 'size_t' to 'char_size_t', possible loss of data
l:\cache2\dev\cpp\include\prim_types.h(196) : warning C4267: 'argument' : conversion from 'size_t' to 'char_size_t', possible loss of data
l:\cache2\dev\cpp\include\prim_types.h(248) : warning C4267: 'return' : conversion from 'size_t' to 'long', possible loss of data
l:\cache2\dev\cpp\include\prim_types.h(264) : warning C4267: 'argument' : conversion from 'size_t' to 'byte_size_t', possible loss of data
l:\cache2\dev\cpp\include\prim_types.h(284) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\prim_types.h(1030) : warning C4996: 'wcscpy' was declared deprecated
L:\Program Files\Microsoft Visual Studio 8\VC\include\wchar.h(992) : see declaration of 'wcscpy'
Message: 'This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
l:\cache2\dev\cpp\include\prim_types.h(1044) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\prim_types.h(1048) : warning C4996: 'wcscpy' was declared deprecated
L:\Program Files\Microsoft Visual Studio 8\VC\include\wchar.h(992) : see declaration of 'wcscpy'
Message: 'This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
l:\cache2\dev\cpp\include\class_def.h(202) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\connection.h(128) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\connection.h(130) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\database.h(121) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\query.h(313) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\query.h(318) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\query.h(328) : warning C4267: 'argument' : conversion from 'size_t' to 'char_size_t', possible loss of data
l:\cache2\dev\cpp\include\query.h(330) : warning C4267: 'argument' : conversion from 'size_t' to 'char_size_t', possible loss of data
l:\cache2\dev\cpp\include\query.h(333) : warning C4267: 'argument' : conversion from 'size_t' to 'char_size_t', possible loss of data
l:\cache2\dev\cpp\include\query.h(335) : warning C4267: 'argument' : conversion from 'size_t' to 'char_size_t', possible loss of data
l:\cache2\dev\cpp\include\query.h(361) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\query.h(373) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\gen_class_def.h(213) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\gen_class_def.h(263) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\gen_class_def.h(268) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\gen_class_def.h(273) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\gen_class_def.h(373) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
l:\cache2\dev\cpp\include\gen_class_def.h(375) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
.\Second.cpp(18) : error C2665: 'InterSystems::tcp_conn::connect' : none of the 2 overloads could convert all the argument types
l:\cache2\dev\cpp\include\connection.h(416): could be 'InterSystems::d_connection InterSystems::tcp_conn::connect(const InterSystems::d_string &,const InterSystems::d_string &,const InterSystems::d_string &,int,InterSystems::Db_err *)'
l:\cache2\dev\cpp\include\connection.h(422): or 'InterSystems::d_connection InterSystems::tcp_conn::connect(const InterSystems::d_string &,const InterSystems::d_string &,int,int,InterSystems::Db_err *)'
while trying to match the argument list '(const char [24], const char [7], const char [13], InterSystems::Db_err *__w64 )'
.\Second.cpp(18) : error C2512: 'InterSystems::Conn_handle' : no appropriate default constructor available
.\Second.cpp(27) : error C2065: 'Datadase' : undeclared identifier
.\Second.cpp(27) : error C2146: syntax error : missing ';' before identifier 'db'
.\Second.cpp(27) : error C3861: 'db': identifier not found
.\Second.cpp(35) : error C2039: 'getCity' : is not a member of 'InterSystems::Sample_Person'
d:\projects\second\second\Sample_Person.h(12) : see declaration of 'InterSystems::Sample_Person'
.\Second.cpp(37) : error C2660: 'InterSystems::Sample_Address::getCity' : function does not take 1 arguments
.\Second.cpp(53) : error C2059: syntax error : 'return'
.\Second.cpp(54) : error C2059: syntax error : '}'
.\Second.cpp(54) : error C2143: syntax error : missing ';' before '}'
.\Second.cpp(54) : error C2059: syntax error : '}'
Build log was saved at "file://d:\Projects\Second\Second\Release\BuildLog.htm"
Second - 11 error(s), 37 warning(s)
========== Построение: успешно: 0, с ошибками: 1, без изменений: 0, пропущено: 0 ==========
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / Caché, Ensemble, DeepSee, MiniM, IRIS, GT.M [игнор отключен] [закрыт для гостей] / 11 ошибок из примера "Соединение для С++"
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]