Re: [Dclib-devel] warnings building dlib in VS 2005
Brought to you by:
davisking
From: Davis K. <dav...@us...> - 2008-11-08 00:04:09
|
Hmm, what warning level did you compile it on? At level 3 in visual studio 2005 express edition I don't get any warnings. Or are you compiling at level 4? That would be a cool way to edit the registry and certainly easier than regedit. Thanks, I do try to make dlib easy to use :) I live down in Maryland near DC. Cheers, Davis On Fri, Nov 7, 2008 at 4:41 PM, Lowden, James K < jam...@al...> wrote: > Hello Davis, > > My experience with dlib. > > 3:55 PM: Found with Google searching for "c++ http server > library" > 4:20 PM: Built in VS 2005 > 4:25 PM: Sending you congratulations > > The build succeeded, but VS 2005 complains about some signed/unsigned > conversions. Considering the care you put into portability and that the > docs were updated two weeks ago, I thought you'd want to know. > > Here's the output from my first build: > > 1>------ Build started: Project: dlib, Configuration: Debug Win32 ------ > 1>Compiling... > 1>source.cpp > 1>c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\gui_widgets\base_widgets > .h(1284) : warning C4267: 'argument' : conversion from 'size_t' to > 'unsigned long', possible loss of data > 1>c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\gui_widgets\base_widgets > .h(1285) : warning C4267: 'argument' : conversion from 'size_t' to > 'unsigned long', possible loss of data > 1>c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\gui_widgets\widgets.cpp( > 1336) : warning C4267: 'argument' : conversion from 'size_t' to > 'unsigned long', possible loss of data > 1>c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\gui_widgets\widgets.cpp( > 1345) : warning C4267: 'argument' : conversion from 'size_t' to > 'unsigned long', possible loss of data > 1>c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\gui_widgets\widgets.cpp( > 3489) : warning C4267: 'argument' : conversion from 'size_t' to 'const > dlib::uint32', possible loss of data > 1>c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\gui_widgets\widgets.cpp( > 3489) : warning C4267: 'argument' : conversion from 'size_t' to 'const > dlib::uint32', possible loss of data > 1>c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\gui_widgets\widgets.cpp( > 4081) : warning C4267: 'argument' : conversion from 'size_t' to > 'unsigned long', possible loss of data > 1>c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\gui_widgets\widgets.cpp( > 4086) : warning C4267: 'argument' : conversion from 'size_t' to > 'unsigned long', possible loss of data > 1>c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\gui_widgets\widgets.cpp( > 4662) : warning C4267: 'argument' : conversion from 'size_t' to 'long', > possible loss of data > 1>c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\gui_widgets\widgets.cpp( > 4677) : warning C4267: 'argument' : conversion from 'size_t' to 'long', > possible loss of data > 1>c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\gui_widgets\widgets.cpp( > 4982) : warning C4267: '=' : conversion from 'size_t' to 'long', > possible loss of data > 1>c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\gui_widgets\widgets.cpp( > 4990) : warning C4267: '=' : conversion from 'size_t' to 'long', > possible loss of data > 1>c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\gui_widgets\widgets.cpp( > 5042) : warning C4267: 'initializing' : conversion from 'size_t' to > 'unsigned long', possible loss of data > 1>c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\queue\queue_sort_1.h(82) > : warning C4267: 'argument' : conversion from 'size_t' to 'const > unsigned long', possible loss of data > 1> > c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\queue\queue_sort_1.h(39) : > see reference to function template instantiation 'void > dlib::queue_sort_1<queue_base>::sort_this_queue<compare_type>(queue_base > &,long,const compare_type &)' being compiled > 1> with > 1> [ > 1> > queue_base=dlib::queue_kernel_c<dlib::queue_kernel_1<std::string,dlib::m > emory_manager_kernel_1<char,0>>>, > 1> > compare_type=dlib::open_file_box_helper::case_insensitive_compare > 1> ] > 1> > c:\usr\home\lowdenjk\projects\dlib-17.11\dlib\gui_widgets\widgets.cpp(35 > 26) : see reference to function template instantiation 'void > dlib::queue_sort_1<queue_base>::sort<dlib::open_file_box_helper::case_in > sensitive_compare>(const compare_type &)' being compiled > 1> with > 1> [ > 1> > queue_base=dlib::queue_kernel_c<dlib::queue_kernel_1<std::string,dlib::m > emory_manager_kernel_1<char,0>>>, > 1> > compare_type=dlib::open_file_box_helper::case_insensitive_compare > 1> ] > 1>Creating library... > 1>Build log was saved at > "file://c:\usr\home\lowdenjk\projects\httpd\registryd\dlib\Debug\BuildLo > g.htm" > 1>dlib - 0 error(s), 14 warning(s) > ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped > ========== > > I thought you might be interested in the goal of my little toy: a > web-based registry editor. Basically, use the registry as a backing > store for GET/POST, with externally-defined HTML forms for particular > parts. With your library installed as a Win32 service, the use could > point IE at localhost:5000 (say) and point-and-click certain changes. > Like, for example, changing the PATH without using a stupid 40-character > text-edit line. > > Nice work, by the way. Very nice work. > > Regards, > > --jkl > > P.S. I'm in New York. Where do you live? > > |