Thread: Re: [Dclib-devel] dlib C++ library Compilation Errors
Brought to you by:
davisking
|
From: Davis K. <dav...@us...> - 2008-07-22 11:16:13
|
Don't put anything into the /home/Bill/dlib/dlib folder. That is probably
your problem. Try just going into the examples folder and doing "g++
-DNO_MAKEFILE bayes_net_ex.cpp -I ..".
You might also get linker errors about gdi32, comctl32, user32, ws2_32, or
imm32. So if that happens try adding -l gdi32 -l imm32, etc...
Let me know if that doesn't fix your problem.
-Davis
On Tue, Jul 22, 2008 at 3:35 AM, Nabeel Alzahrani <nza...@ho...>
wrote:
>
> Hello Davis
>
> I tried to run the example bayes_net_ex.cpp but I got many error messages.
> I am using Cygwin version 1.5.25 (you can tell using the command uname -r)
> under Windows XP Home edition with service pack 3.
> I downloaded the library to a folder named dlib, so I have the following
> folders:
> /home/Bill/dlib/dlib
> /home/Bill/dlib/docs
> /home/Bill/dlib/examples
> I moved the example bayes_net_ex.cpp from the folder
> /home/Bill/dlib/examples to the folder /home/Bill/dlib/dlib and compiled it
> using the command g++ bayes_net_ex.cpp and gcc bayes_net_ex.cpp with and
> without using the compiler director #define NO_MAKEFILE as the first line.
>
> The error messages are:
> $ g++ bayes_net_ex.cpp
>
> --------------------------------------------------------------------------------------------------------
> In file included from
> dlib/bayes_utils/../string.h:6,
>
>
> from
> dlib/bayes_utils/bayes_utils.h:8,
>
>
> from
> dlib/bayes_utils.h:6,
>
>
> from
> bayes_net_ex.cpp:39:
>
>
> dlib/bayes_utils/../string/string.h:88:
> error: expected init-declarator before "
>
>
> cast_to_wstring"
>
>
> dlib/bayes_utils/../string/string.h:88:
> error: expected `;' before "cast_to_wstr
>
>
> ing"
>
>
> dlib/bayes_utils/../string/string.h: In
> function `const T dlib::string_cast(cons
>
>
> t wchar_t*)':
>
>
> dlib/bayes_utils/../string/string.h:214:
> error: `wstring' is not a member of `st
>
>
> d'
>
>
> In file included from
> dlib/bayes_utils/../map/../unicode.h:6,
>
>
> from
> dlib/bayes_utils/../map/../serialize.h:121,
>
>
> from
> dlib/bayes_utils/../map/map_kernel_1.h:11,
>
>
> from
> dlib/bayes_utils/../map.h:6,
>
>
> from
> dlib/bayes_utils/bayes_utils.h:9,
>
>
> from
> dlib/bayes_utils.h:6,
>
>
> from
> bayes_net_ex.cpp:39:
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:
> At global scope:
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:521:
> error: expected unqualified-id
>
>
> before '&' token
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:521:
> error: expected `,' or `...' b
>
>
> efore '&' token
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:522:
> error: ISO C++ forbids declara
>
>
> tion of `parameter' with no type
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:524:
> error: expected init-declarato
>
>
> r before "convert_utf32_to_wstring"
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:524:
> error: expected `,' or `;' bef
>
>
> ore "convert_utf32_to_wstring"
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:528:
> error: expected init-declarato
>
>
> r before "convert_mbstring_to_wstring"
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:528:
> error: expected `,' or `;' bef
>
>
> ore "convert_mbstring_to_wstring"
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:533:
> error: expected unqualified-id
>
>
> before '&' token
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:533:
> error: expected `,' or `...' b
>
>
> efore '&' token
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:534:
> error: ISO C++ forbids declara
>
>
> tion of `parameter' with no type
>
>
> In file included from
> dlib/bayes_utils/../map/map_kernel_1.h:11,
>
>
> from
> dlib/bayes_utils/../map.h:6,
>
>
> from
> dlib/bayes_utils/bayes_utils.h:9,
>
>
> from
> dlib/bayes_utils.h:6,
>
>
> from
> bayes_net_ex.cpp:39:
>
>
> dlib/bayes_utils/../map/../serialize.h:738:
> error: expected unqualified-id befor
>
>
> e '&' token
>
>
> dlib/bayes_utils/../map/../serialize.h:738:
> error: expected `,' or `...' before
>
>
> '&' token
>
>
> dlib/bayes_utils/../map/../serialize.h:741:
> error: ISO C++ forbids declaration o
>
>
> f `parameter' with no type
>
>
> dlib/bayes_utils/../map/../serialize.h:
> In function `void dlib::serialize(int)':
>
>
>
>
>
> dlib/bayes_utils/../map/../serialize.h:742:
> error: `item' undeclared (first use
>
>
> this function)
>
>
> dlib/bayes_utils/../map/../serialize.h:742:
> error: (Each undeclared identifier i
>
>
> s reported only once for each function
> it appears in.)
>
>
> dlib/bayes_utils/../map/../serialize.h:743:
> error: `out' undeclared (first use t
>
>
> his function)
>
>
> dlib/bayes_utils/../map/../serialize.h:
> At global scope:
>
>
> dlib/bayes_utils/../map/../serialize.h:752:
> error: variable or field `deserializ
>
>
> e' declared void
>
>
> dlib/bayes_utils/../map/../serialize.h:752:
> error: `dlib::deserialize' declared
>
>
> as an `inline' variable
>
>
> dlib/bayes_utils/../map/../serialize.h:752:
> error: `int dlib::deserialize' redec
>
>
> lared as different kind of symbol
>
>
> dlib/bayes_utils/../map/../serialize.h:677:
> error: previous declaration of `temp
>
>
> late void
> dlib::deserialize(std::vector&, std
>
>
> ::istream&)'
>
>
> dlib/bayes_utils/../map/../serialize.h:752:
> error: declaration of `int dlib::des
>
>
> erialize'
>
>
> dlib/bayes_utils/../map/../serialize.h:677:
> error: conflicts with previous decla
>
>
> ration ` namespace dlib {
> }::deserialize'
>
>
> dlib/bayes_utils/../map/../serialize.h:753:
> error: `wstring' is not a member of
>
>
> `std'
>
>
> dlib/bayes_utils/../map/../serialize.h:753:
> error: `item' was not declared in th
>
>
> is scope
>
>
> dlib/bayes_utils/../map/../serialize.h:754:
> error: expected primary-expression b
>
>
> efore '&' token
>
>
> dlib/bayes_utils/../map/../serialize.h:755:
> error: `in' was not declared in this
>
>
> scope
>
>
> dlib/bayes_utils/../map/../serialize.h:756:
> error: initializer expression list t
>
>
> reated as compound expression
>
>
> dlib/bayes_utils/../map/../serialize.h:756:
> error: expected `,' or `;' before '{
>
>
> ' token
>
>
>
>
>
>
>
>
> _________________________________________________________________
> Time for vacation? WIN what you need- enter now!
> http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm
|
|
From: Davis K. <dav...@us...> - 2008-07-22 19:42:18
|
Ah, it is the std::wstring. Some of the windows ports of gcc to windows are
missing the wide character stuff from the standard C++ library. You can
maybe get it working by adding a #ifdef around the offending bits of code to
disable them when they are used on the version of gcc used by cygwin 1.5.
Or you could try using mingw. I believe it's newest version isn't missing
these things from its library.
I'll play around with cygwin when I get some free time and see if I can't
find a workaround. But let me know if you find an easy solution :)
-Davis
On Tue, Jul 22, 2008 at 3:23 PM, Nabeel Alzahrani <nza...@ho...>
wrote:
> I did not put anything into the /home/Bill/dlib/dlib folder. If I just go
> to the examples folder and do ""g++ -DNO_MAKEFILE bayes_net_ex.cpp", I got
> the error messages:
> ------------------------------------------------------
>
> Bill@pc ~
> $ ls
> dlib
>
> Bill@pc ~
> $ cd dlib
>
> Bill@pc ~/dlib
> $ ls
> New Text Document.txt dlib documentation.html makefile.txt
> bayes_net_ex.cpp docs examples project.cpp
>
> Bill@pc ~/dlib
> $ pwd
> /home/Bill/dlib
>
> Bill@pc ~/dlib
> $ cd examples
>
> Bill@pc ~/dlib/examples
> $ g++ -DNO_MAKEFILE bayes_net_ex.cpp
> bayes_net_ex.cpp:38:30: dlib/bayes_utils.h: No such file or directory
> bayes_net_ex.cpp:39:30: dlib/graph_utils.h: No such file or directory
> bayes_net_ex.cpp:40:24: dlib/graph.h: No such file or directory
> bayes_net_ex.cpp:41:33: dlib/directed_graph.h: No such file or directory
> bayes_net_ex.cpp:45: error: expected namespace-name before ';' token
> bayes_net_ex.cpp:45: error: `<type error>' is not a namespace
> bayes_net_ex.cpp: In function `int main()':
> bayes_net_ex.cpp:59: error: expected namespace-name before ';' token
> bayes_net_ex.cpp:59: error: `<type error>' is not a namespace
> bayes_net_ex.cpp:64: error: `directed_graph' undeclared (first use this
> function
> )
> bayes_net_ex.cpp:64: error: (Each undeclared identifier is reported only
> once fo
> r each function it appears in.)
> bayes_net_ex.cpp:64: error: `bayes_node' undeclared (first use this
> function)
> bayes_net_ex.cpp:64: error: `::kernel_1a_c' has not been declared
> bayes_net_ex.cpp:64: error: expected `;' before "bn"
> bayes_net_ex.cpp:80: error: `bn' undeclared (first use this function)
> bayes_net_ex.cpp:88: error: `set_node_num_values' undeclared (first use
> this fun
> ction)
> bayes_net_ex.cpp:93: error: `assignment' undeclared (first use this
> function)
> bayes_net_ex.cpp:93: error: expected `;' before "parent_state"
> bayes_net_ex.cpp:102: error: `parent_state' undeclared (first use this
> function)
>
> bayes_net_ex.cpp:102: error: `set_node_probability' undeclared (first use
> this f
> unction)
> bayes_net_ex.cpp:167: error: expected init-declarator before '<' token
> bayes_net_ex.cpp:167: error: expected `,' or `;' before '<' token
> bayes_net_ex.cpp:168: error: `join_tree_type' undeclared (first use this
> functio
> n)
> bayes_net_ex.cpp:168: error: expected `;' before "join_tree"
> bayes_net_ex.cpp:174: error: `join_tree' undeclared (first use this
> function)
> bayes_net_ex.cpp:174: error: `create_moral_graph' undeclared (first use
> this fun
> ction)
> bayes_net_ex.cpp:175: error: `create_join_tree' undeclared (first use this
> funct
> ion)
> bayes_net_ex.cpp:180: error: `bayesian_network_join_tree' undeclared (first
> use
> this function)
> bayes_net_ex.cpp:180: error: expected `;' before "solution"
> bayes_net_ex.cpp:185: error: `solution' undeclared (first use this
> function)
> bayes_net_ex.cpp:200: error: `set_node_value' undeclared (first use this
> functio
> n)
> bayes_net_ex.cpp:201: error: `set_node_as_evidence' undeclared (first use
> this f
> unction)
> bayes_net_ex.cpp:205: error: expected `;' before "solution_with_evidence"
> bayes_net_ex.cpp:209: error: `solution_with_evidence' undeclared (first use
> this
> function)
> bayes_net_ex.cpp:255: error: `bayesian_network_gibbs_sampler' undeclared
> (first
> use this function)
> bayes_net_ex.cpp:255: error: expected `;' before "sampler"
> bayes_net_ex.cpp:274: error: `sampler' undeclared (first use this function)
> bayes_net_ex.cpp:276: error: `node_value' undeclared (first use this
> function)
>
> Bill@pc ~/dlib/examples
> $
> ------------------------------------------------------
> However, if I changed the paths in the bayes_net_ex.cpp file to reflect the
> location of the dlib library by changing the includes to:
> #include "../dlib/bayes_utils.h"
> #include "../dlib/graph_utils.h"
> #include "../dlib/graph.h"
> #include "../dlib/directed_graph.h"
> and do ""g++ -DNO_MAKEFILE bayes_net_ex.cpp", I got the error messages:
> -------------------------------------------------------
>
> Bill@pc ~
> $ ls
> dlib
>
> Bill@pc ~
> $ cd dlib
>
> Bill@pc ~/dlib
> $ ls
> New Text Document.txt dlib documentation.html makefile.txt
> bayes_net_ex.cpp docs examples project.cpp
>
> Bill@pc ~/dlib
> $ cd examples
>
> Bill@pc ~/dlib/examples
> $ g++ bayes_net_ex.cpp
> In file included from ../dlib/bayes_utils/../string.h:6,
> from ../dlib/bayes_utils/bayes_utils.h:8,
> from ../dlib/bayes_utils.h:6,
> from bayes_net_ex.cpp:38:
> ../dlib/bayes_utils/../string/string.h:88: error: expected init-declarator
> befor
> e "cast_to_wstring"
> ../dlib/bayes_utils/../string/string.h:88: error: expected `;' before
> "cast_to_w
> string"
> ../dlib/bayes_utils/../string/string.h: In function `const T
> dlib::string_cast(c
> onst wchar_t*)':
> ../dlib/bayes_utils/../string/string.h:214: error: `wstring' is not a
> member of
> `std'
> In file included from ../dlib/bayes_utils/../map/../unicode.h:6,
> from ../dlib/bayes_utils/../map/../serialize.h:121,
> from ../dlib/bayes_utils/../map/map_kernel_1.h:11,
> from ../dlib/bayes_utils/../map.h:6,
> from ../dlib/bayes_utils/bayes_utils.h:9,
> from ../dlib/bayes_utils.h:6,
> from bayes_net_ex.cpp:38:
> ../dlib/bayes_utils/../map/../unicode/unicode.h: At global scope:
> ../dlib/bayes_utils/../map/../unicode/unicode.h:521: error: expected
> unqualified
> -id before '&' token
> ../dlib/bayes_utils/../map/../unicode/unicode.h:521: error: expected `,' or
> `...
> ' before '&' token
> ../dlib/bayes_utils/../map/../unicode/unicode.h:522: error: ISO C++ forbids
> decl
> aration of `parameter' with no type
> ../dlib/bayes_utils/../map/../unicode/unicode.h:524: error: expected
> init-declar
> ator before "convert_utf32_to_wstring"
> ../dlib/bayes_utils/../map/../unicode/unicode.h:524: error: expected `,' or
> `;'
> before "convert_utf32_to_wstring"
> ../dlib/bayes_utils/../map/../unicode/unicode.h:528: error: expected
> init-declar
> ator before "convert_mbstring_to_wstring"
> ../dlib/bayes_utils/../map/../unicode/unicode.h:528: error: expected `,' or
> `;'
> before "convert_mbstring_to_wstring"
> ../dlib/bayes_utils/../map/../unicode/unicode.h:533: error: expected
> unqualified
> -id before '&' token
> ../dlib/bayes_utils/../map/../unicode/unicode.h:533: error: expected `,' or
> `...
> ' before '&' token
> ../dlib/bayes_utils/../map/../unicode/unicode.h:534: error: ISO C++ forbids
> decl
> aration of `parameter' with no type
> In file included from ../dlib/bayes_utils/../map/map_kernel_1.h:11,
> from ../dlib/bayes_utils/../map.h:6,
> from ../dlib/bayes_utils/bayes_utils.h:9,
> from ../dlib/bayes_utils.h:6,
> from bayes_net_ex.cpp:38:
> ../dlib/bayes_utils/../map/../serialize.h:738: error: expected
> unqualified-id be
> fore '&' token
> ../dlib/bayes_utils/../map/../serialize.h:738: error: expected `,' or `...'
> befo
> re '&' token
> ../dlib/bayes_utils/../map/../serialize.h:741: error: ISO C++ forbids
> declaratio
> n of `parameter' with no type
> ../dlib/bayes_utils/../map/../serialize.h: In function `void
> dlib::serialize(int
> )':
> ../dlib/bayes_utils/../map/../serialize.h:742: error: `item' undeclared
> (first u
> se this function)
> ../dlib/bayes_utils/../map/../serialize.h:742: error: (Each undeclared
> identifie
> r is reported only once for each function it appears in.)
> ../dlib/bayes_utils/../map/../serialize.h:743: error: `out' undeclared
> (first us
> e this function)
> ../dlib/bayes_utils/../map/../serialize.h: At global scope:
> ../dlib/bayes_utils/../map/../serialize.h:752: error: variable or field
> `deseria
> lize' declared void
> ../dlib/bayes_utils/../map/../serialize.h:752: error: `dlib::deserialize'
> declar
> ed as an `inline' variable
> ../dlib/bayes_utils/../map/../serialize.h:752: error: `int
> dlib::deserialize' re
> declared as different kind of symbol
> ../dlib/bayes_utils/../map/../serialize.h:677: error: previous declaration
> of `t
> emplate<class T, class alloc> void dlib::deserialize(std::vector<_Tp,
> _Alloc>&,
> std::istream&)'
> ../dlib/bayes_utils/../map/../serialize.h:752: error: declaration of `int
> dlib::
> deserialize'
> ../dlib/bayes_utils/../map/../serialize.h:677: error: conflicts with
> previous de
> claration ` namespace dlib { }::deserialize'
> ../dlib/bayes_utils/../map/../serialize.h:753: error: `wstring' is not a
> member
> of `std'
> ../dlib/bayes_utils/../map/../serialize.h:753: error: `item' was not
> declared in
> this scope
> ../dlib/bayes_utils/../map/../serialize.h:754: error: expected
> primary-expressio
> n before '&' token
> ../dlib/bayes_utils/../map/../serialize.h:755: error: `in' was not declared
> in t
> his scope
> ../dlib/bayes_utils/../map/../serialize.h:756: error: initializer
> expression lis
> t treated as compound expression
> ../dlib/bayes_utils/../map/../serialize.h:756: error: expected `,' or `;'
> before
> '{' token
>
> Bill@pc ~/dlib/examples
> $
> -------------------------------------------------------
> ------------------------------
> Date: Tue, 22 Jul 2008 07:16:09 -0400
> From: dav...@us...
> To: nza...@ho...
> Subject: Re: dlib C++ library Compilation Errors
> CC: dcl...@li...
>
>
> Don't put anything into the /home/Bill/dlib/dlib folder. That is probably
> your problem. Try just going into the examples folder and doing "g++
> -DNO_MAKEFILE bayes_net_ex.cpp -I ..".
>
> You might also get linker errors about gdi32, comctl32, user32, ws2_32, or
> imm32. So if that happens try adding -l gdi32 -l imm32, etc...
>
> Let me know if that doesn't fix your problem.
>
> -Davis
>
> On Tue, Jul 22, 2008 at 3:35 AM, Nabeel Alzahrani <nza...@ho...>
> wrote:
>
>
> Hello Davis
>
> I tried to run the example bayes_net_ex.cpp but I got many error messages.
> I am using Cygwin version 1.5.25 (you can tell using the command uname -r)
> under Windows XP Home edition with service pack 3.
> I downloaded the library to a folder named dlib, so I have the following
> folders:
> /home/Bill/dlib/dlib
> /home/Bill/dlib/docs
> /home/Bill/dlib/examples
> I moved the example bayes_net_ex.cpp from the folder
> /home/Bill/dlib/examples to the folder /home/Bill/dlib/dlib and compiled it
> using the command g++ bayes_net_ex.cpp and gcc bayes_net_ex.cpp with and
> without using the compiler director #define NO_MAKEFILE as the first line.
>
> The error messages are:
> $ g++ bayes_net_ex.cpp
>
> --------------------------------------------------------------------------------------------------------
> In file included from
> dlib/bayes_utils/../string.h:6,
>
>
> from
> dlib/bayes_utils/bayes_utils.h:8,
>
>
> from
> dlib/bayes_utils.h:6,
>
>
> from
> bayes_net_ex.cpp:39:
>
>
> dlib/bayes_utils/../string/string.h:88:
> error: expected init-declarator before "
>
>
> cast_to_wstring"
>
>
> dlib/bayes_utils/../string/string.h:88:
> error: expected `;' before "cast_to_wstr
>
>
> ing"
>
>
> dlib/bayes_utils/../string/string.h: In
> function `const T dlib::string_cast(cons
>
>
> t wchar_t*)':
>
>
> dlib/bayes_utils/../string/string.h:214:
> error: `wstring' is not a member of `st
>
>
> d'
>
>
> In file included from
> dlib/bayes_utils/../map/../unicode.h:6,
>
>
> from
> dlib/bayes_utils/../map/../serialize.h:121,
>
>
> from
> dlib/bayes_utils/../map/map_kernel_1.h:11,
>
>
> from
> dlib/bayes_utils/../map.h:6,
>
>
> from
> dlib/bayes_utils/bayes_utils.h:9,
>
>
> from
> dlib/bayes_utils.h:6,
>
>
> from
> bayes_net_ex.cpp:39:
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:
> At global scope:
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:521:
> error: expected unqualified-id
>
>
> before '&' token
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:521:
> error: expected `,' or `...' b
>
>
> efore '&' token
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:522:
> error: ISO C++ forbids declara
>
>
> tion of `parameter' with no type
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:524:
> error: expected init-declarato
>
>
> r before "convert_utf32_to_wstring"
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:524:
> error: expected `,' or `;' bef
>
>
> ore "convert_utf32_to_wstring"
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:528:
> error: expected init-declarato
>
>
> r before "convert_mbstring_to_wstring"
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:528:
> error: expected `,' or `;' bef
>
>
> ore "convert_mbstring_to_wstring"
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:533:
> error: expected unqualified-id
>
>
> before '&' token
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:533:
> error: expected `,' or `...' b
>
>
> efore '&' token
>
>
> dlib/bayes_utils/../map/../unicode/unicode.h:534:
> error: ISO C++ forbids declara
>
>
> tion of `parameter' with no type
>
>
> In file included from
> dlib/bayes_utils/../map/map_kernel_1.h:11,
>
>
> from
> dlib/bayes_utils/../map.h:6,
>
>
> from
> dlib/bayes_utils/bayes_utils.h:9,
>
>
> from
> dlib/bayes_utils.h:6,
>
>
> from
> bayes_net_ex.cpp:39:
>
>
> dlib/bayes_utils/../map/../serialize.h:738:
> error: expected unqualified-id befor
>
>
> e '&' token
>
>
> dlib/bayes_utils/../map/../serialize.h:738:
> error: expected `,' or `...' before
>
>
> '&' token
>
>
> dlib/bayes_utils/../map/../serialize.h:741:
> error: ISO C++ forbids declaration o
>
>
> f `parameter' with no type
>
>
> dlib/bayes_utils/../map/../serialize.h:
> In function `void dlib::serialize(int)':
>
>
>
>
>
> dlib/bayes_utils/../map/../serialize.h:742:
> error: `item' undeclared (first use
>
>
> this function)
>
>
> dlib/bayes_utils/../map/../serialize.h:742:
> error: (Each undeclared identifier i
>
>
> s reported only once for each function
> it appears in.)
>
>
> dlib/bayes_utils/../map/../serialize.h:743:
> error: `out' undeclared (first use t
>
>
> his function)
>
>
> dlib/bayes_utils/../map/../serialize.h:
> At global scope:
>
>
> dlib/bayes_utils/../map/../serialize.h:752:
> error: variable or field `deserializ
>
>
> e' declared void
>
>
> dlib/bayes_utils/../map/../serialize.h:752:
> error: `dlib::deserialize' declared
>
>
> as an `inline' variable
>
>
> dlib/bayes_utils/../map/../serialize.h:752:
> error: `int dlib::deserialize' redec
>
>
> lared as different kind of symbol
>
>
> dlib/bayes_utils/../map/../serialize.h:677:
> error: previous declaration of `temp
>
>
> late void
> dlib::deserialize(std::vector&, std
>
>
> ::istream&)'
>
>
> dlib/bayes_utils/../map/../serialize.h:752:
> error: declaration of `int dlib::des
>
>
> erialize'
>
>
> dlib/bayes_utils/../map/../serialize.h:677:
> error: conflicts with previous decla
>
>
> ration ` namespace dlib {
> }::deserialize'
>
>
> dlib/bayes_utils/../map/../serialize.h:753:
> error: `wstring' is not a member of
>
>
> `std'
>
>
> dlib/bayes_utils/../map/../serialize.h:753:
> error: `item' was not declared in th
>
>
> is scope
>
>
> dlib/bayes_utils/../map/../serialize.h:754:
> error: expected primary-expression b
>
>
> efore '&' token
>
>
> dlib/bayes_utils/../map/../serialize.h:755:
> error: `in' was not declared in this
>
>
> scope
>
>
> dlib/bayes_utils/../map/../serialize.h:756:
> error: initializer expression list t
>
>
> reated as compound expression
>
>
> dlib/bayes_utils/../map/../serialize.h:756:
> error: expected `,' or `;' before '{
>
>
> ' token
>
>
>
>
>
>
>
>
> _________________________________________________________________
> Time for vacation? WIN what you need- enter now!
> http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm
>
>
>
> ------------------------------
> Time for vacation? WIN what you need. Enter Now!<http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm>
>
|
|
From: Davis K. <dav...@us...> - 2008-07-25 00:10:29
|
I just installed cygwin and modified the library so that it compiles without any of these errors. I put a snapshot of it in http://dclib.sf.net/snapshotso you can give that copy a try. -Davis On Tue, Jul 22, 2008 at 3:42 PM, Davis King <dav...@us...> wrote: > Ah, it is the std::wstring. Some of the windows ports of gcc to windows > are missing the wide character stuff from the standard C++ library. You can > maybe get it working by adding a #ifdef around the offending bits of code to > disable them when they are used on the version of gcc used by cygwin 1.5. > > Or you could try using mingw. I believe it's newest version isn't missing > these things from its library. > > I'll play around with cygwin when I get some free time and see if I can't > find a workaround. But let me know if you find an easy solution :) > > -Davis > > > On Tue, Jul 22, 2008 at 3:23 PM, Nabeel Alzahrani <nza...@ho...> > wrote: > >> I did not put anything into the /home/Bill/dlib/dlib folder. If I just go >> to the examples folder and do ""g++ -DNO_MAKEFILE bayes_net_ex.cpp", I got >> the error messages: >> ------------------------------------------------------ >> >> Bill@pc ~ >> $ ls >> dlib >> >> Bill@pc ~ >> $ cd dlib >> >> Bill@pc ~/dlib >> $ ls >> New Text Document.txt dlib documentation.html makefile.txt >> bayes_net_ex.cpp docs examples project.cpp >> >> Bill@pc ~/dlib >> $ pwd >> /home/Bill/dlib >> >> Bill@pc ~/dlib >> $ cd examples >> >> Bill@pc ~/dlib/examples >> $ g++ -DNO_MAKEFILE bayes_net_ex.cpp >> bayes_net_ex.cpp:38:30: dlib/bayes_utils.h: No such file or directory >> bayes_net_ex.cpp:39:30: dlib/graph_utils.h: No such file or directory >> bayes_net_ex.cpp:40:24: dlib/graph.h: No such file or directory >> bayes_net_ex.cpp:41:33: dlib/directed_graph.h: No such file or directory >> bayes_net_ex.cpp:45: error: expected namespace-name before ';' token >> bayes_net_ex.cpp:45: error: `<type error>' is not a namespace >> bayes_net_ex.cpp: In function `int main()': >> bayes_net_ex.cpp:59: error: expected namespace-name before ';' token >> bayes_net_ex.cpp:59: error: `<type error>' is not a namespace >> bayes_net_ex.cpp:64: error: `directed_graph' undeclared (first use this >> function >> ) >> bayes_net_ex.cpp:64: error: (Each undeclared identifier is reported only >> once fo >> r each function it appears in.) >> bayes_net_ex.cpp:64: error: `bayes_node' undeclared (first use this >> function) >> bayes_net_ex.cpp:64: error: `::kernel_1a_c' has not been declared >> bayes_net_ex.cpp:64: error: expected `;' before "bn" >> bayes_net_ex.cpp:80: error: `bn' undeclared (first use this function) >> bayes_net_ex.cpp:88: error: `set_node_num_values' undeclared (first use >> this fun >> ction) >> bayes_net_ex.cpp:93: error: `assignment' undeclared (first use this >> function) >> bayes_net_ex.cpp:93: error: expected `;' before "parent_state" >> bayes_net_ex.cpp:102: error: `parent_state' undeclared (first use this >> function) >> >> bayes_net_ex.cpp:102: error: `set_node_probability' undeclared (first use >> this f >> unction) >> bayes_net_ex.cpp:167: error: expected init-declarator before '<' token >> bayes_net_ex.cpp:167: error: expected `,' or `;' before '<' token >> bayes_net_ex.cpp:168: error: `join_tree_type' undeclared (first use this >> functio >> n) >> bayes_net_ex.cpp:168: error: expected `;' before "join_tree" >> bayes_net_ex.cpp:174: error: `join_tree' undeclared (first use this >> function) >> bayes_net_ex.cpp:174: error: `create_moral_graph' undeclared (first use >> this fun >> ction) >> bayes_net_ex.cpp:175: error: `create_join_tree' undeclared (first use this >> funct >> ion) >> bayes_net_ex.cpp:180: error: `bayesian_network_join_tree' undeclared >> (first use >> this function) >> bayes_net_ex.cpp:180: error: expected `;' before "solution" >> bayes_net_ex.cpp:185: error: `solution' undeclared (first use this >> function) >> bayes_net_ex.cpp:200: error: `set_node_value' undeclared (first use this >> functio >> n) >> bayes_net_ex.cpp:201: error: `set_node_as_evidence' undeclared (first use >> this f >> unction) >> bayes_net_ex.cpp:205: error: expected `;' before "solution_with_evidence" >> bayes_net_ex.cpp:209: error: `solution_with_evidence' undeclared (first >> use this >> function) >> bayes_net_ex.cpp:255: error: `bayesian_network_gibbs_sampler' undeclared >> (first >> use this function) >> bayes_net_ex.cpp:255: error: expected `;' before "sampler" >> bayes_net_ex.cpp:274: error: `sampler' undeclared (first use this >> function) >> bayes_net_ex.cpp:276: error: `node_value' undeclared (first use this >> function) >> >> Bill@pc ~/dlib/examples >> $ >> ------------------------------------------------------ >> However, if I changed the paths in the bayes_net_ex.cpp file to reflect >> the location of the dlib library by changing the includes to: >> #include "../dlib/bayes_utils.h" >> #include "../dlib/graph_utils.h" >> #include "../dlib/graph.h" >> #include "../dlib/directed_graph.h" >> and do ""g++ -DNO_MAKEFILE bayes_net_ex.cpp", I got the error messages: >> ------------------------------------------------------- >> >> Bill@pc ~ >> $ ls >> dlib >> >> Bill@pc ~ >> $ cd dlib >> >> Bill@pc ~/dlib >> $ ls >> New Text Document.txt dlib documentation.html makefile.txt >> bayes_net_ex.cpp docs examples project.cpp >> >> Bill@pc ~/dlib >> $ cd examples >> >> Bill@pc ~/dlib/examples >> $ g++ bayes_net_ex.cpp >> In file included from ../dlib/bayes_utils/../string.h:6, >> from ../dlib/bayes_utils/bayes_utils.h:8, >> from ../dlib/bayes_utils.h:6, >> from bayes_net_ex.cpp:38: >> ../dlib/bayes_utils/../string/string.h:88: error: expected init-declarator >> befor >> e "cast_to_wstring" >> ../dlib/bayes_utils/../string/string.h:88: error: expected `;' before >> "cast_to_w >> string" >> ../dlib/bayes_utils/../string/string.h: In function `const T >> dlib::string_cast(c >> onst wchar_t*)': >> ../dlib/bayes_utils/../string/string.h:214: error: `wstring' is not a >> member of >> `std' >> In file included from ../dlib/bayes_utils/../map/../unicode.h:6, >> from ../dlib/bayes_utils/../map/../serialize.h:121, >> from ../dlib/bayes_utils/../map/map_kernel_1.h:11, >> from ../dlib/bayes_utils/../map.h:6, >> from ../dlib/bayes_utils/bayes_utils.h:9, >> from ../dlib/bayes_utils.h:6, >> from bayes_net_ex.cpp:38: >> ../dlib/bayes_utils/../map/../unicode/unicode.h: At global scope: >> ../dlib/bayes_utils/../map/../unicode/unicode.h:521: error: expected >> unqualified >> -id before '&' token >> ../dlib/bayes_utils/../map/../unicode/unicode.h:521: error: expected `,' >> or `... >> ' before '&' token >> ../dlib/bayes_utils/../map/../unicode/unicode.h:522: error: ISO C++ >> forbids decl >> aration of `parameter' with no type >> ../dlib/bayes_utils/../map/../unicode/unicode.h:524: error: expected >> init-declar >> ator before "convert_utf32_to_wstring" >> ../dlib/bayes_utils/../map/../unicode/unicode.h:524: error: expected `,' >> or `;' >> before "convert_utf32_to_wstring" >> ../dlib/bayes_utils/../map/../unicode/unicode.h:528: error: expected >> init-declar >> ator before "convert_mbstring_to_wstring" >> ../dlib/bayes_utils/../map/../unicode/unicode.h:528: error: expected `,' >> or `;' >> before "convert_mbstring_to_wstring" >> ../dlib/bayes_utils/../map/../unicode/unicode.h:533: error: expected >> unqualified >> -id before '&' token >> ../dlib/bayes_utils/../map/../unicode/unicode.h:533: error: expected `,' >> or `... >> ' before '&' token >> ../dlib/bayes_utils/../map/../unicode/unicode.h:534: error: ISO C++ >> forbids decl >> aration of `parameter' with no type >> In file included from ../dlib/bayes_utils/../map/map_kernel_1.h:11, >> from ../dlib/bayes_utils/../map.h:6, >> from ../dlib/bayes_utils/bayes_utils.h:9, >> from ../dlib/bayes_utils.h:6, >> from bayes_net_ex.cpp:38: >> ../dlib/bayes_utils/../map/../serialize.h:738: error: expected >> unqualified-id be >> fore '&' token >> ../dlib/bayes_utils/../map/../serialize.h:738: error: expected `,' or >> `...' befo >> re '&' token >> ../dlib/bayes_utils/../map/../serialize.h:741: error: ISO C++ forbids >> declaratio >> n of `parameter' with no type >> ../dlib/bayes_utils/../map/../serialize.h: In function `void >> dlib::serialize(int >> )': >> ../dlib/bayes_utils/../map/../serialize.h:742: error: `item' undeclared >> (first u >> se this function) >> ../dlib/bayes_utils/../map/../serialize.h:742: error: (Each undeclared >> identifie >> r is reported only once for each function it appears in.) >> ../dlib/bayes_utils/../map/../serialize.h:743: error: `out' undeclared >> (first us >> e this function) >> ../dlib/bayes_utils/../map/../serialize.h: At global scope: >> ../dlib/bayes_utils/../map/../serialize.h:752: error: variable or field >> `deseria >> lize' declared void >> ../dlib/bayes_utils/../map/../serialize.h:752: error: `dlib::deserialize' >> declar >> ed as an `inline' variable >> ../dlib/bayes_utils/../map/../serialize.h:752: error: `int >> dlib::deserialize' re >> declared as different kind of symbol >> ../dlib/bayes_utils/../map/../serialize.h:677: error: previous declaration >> of `t >> emplate<class T, class alloc> void dlib::deserialize(std::vector<_Tp, >> _Alloc>&, >> std::istream&)' >> ../dlib/bayes_utils/../map/../serialize.h:752: error: declaration of `int >> dlib:: >> deserialize' >> ../dlib/bayes_utils/../map/../serialize.h:677: error: conflicts with >> previous de >> claration ` namespace dlib { }::deserialize' >> ../dlib/bayes_utils/../map/../serialize.h:753: error: `wstring' is not a >> member >> of `std' >> ../dlib/bayes_utils/../map/../serialize.h:753: error: `item' was not >> declared in >> this scope >> ../dlib/bayes_utils/../map/../serialize.h:754: error: expected >> primary-expressio >> n before '&' token >> ../dlib/bayes_utils/../map/../serialize.h:755: error: `in' was not >> declared in t >> his scope >> ../dlib/bayes_utils/../map/../serialize.h:756: error: initializer >> expression lis >> t treated as compound expression >> ../dlib/bayes_utils/../map/../serialize.h:756: error: expected `,' or `;' >> before >> '{' token >> >> Bill@pc ~/dlib/examples >> $ >> ------------------------------------------------------- >> ------------------------------ >> Date: Tue, 22 Jul 2008 07:16:09 -0400 >> From: dav...@us... >> To: nza...@ho... >> Subject: Re: dlib C++ library Compilation Errors >> CC: dcl...@li... >> >> >> Don't put anything into the /home/Bill/dlib/dlib folder. That is probably >> your problem. Try just going into the examples folder and doing "g++ >> -DNO_MAKEFILE bayes_net_ex.cpp -I ..". >> >> You might also get linker errors about gdi32, comctl32, user32, ws2_32, or >> imm32. So if that happens try adding -l gdi32 -l imm32, etc... >> >> Let me know if that doesn't fix your problem. >> >> -Davis >> >> On Tue, Jul 22, 2008 at 3:35 AM, Nabeel Alzahrani <nza...@ho...> >> wrote: >> >> >> Hello Davis >> >> I tried to run the example bayes_net_ex.cpp but I got many error messages. >> I am using Cygwin version 1.5.25 (you can tell using the command uname -r) >> under Windows XP Home edition with service pack 3. >> I downloaded the library to a folder named dlib, so I have the following >> folders: >> /home/Bill/dlib/dlib >> /home/Bill/dlib/docs >> /home/Bill/dlib/examples >> I moved the example bayes_net_ex.cpp from the folder >> /home/Bill/dlib/examples to the folder /home/Bill/dlib/dlib and compiled it >> using the command g++ bayes_net_ex.cpp and gcc bayes_net_ex.cpp with and >> without using the compiler director #define NO_MAKEFILE as the first line. >> >> The error messages are: >> $ g++ bayes_net_ex.cpp >> >> -------------------------------------------------------------------------------------------------------- >> In file included from >> dlib/bayes_utils/../string.h:6, >> >> >> from >> dlib/bayes_utils/bayes_utils.h:8, >> >> >> from >> dlib/bayes_utils.h:6, >> >> >> from >> bayes_net_ex.cpp:39: >> >> >> dlib/bayes_utils/../string/string.h:88: >> error: expected init-declarator before " >> >> >> cast_to_wstring" >> >> >> dlib/bayes_utils/../string/string.h:88: >> error: expected `;' before "cast_to_wstr >> >> >> ing" >> >> >> dlib/bayes_utils/../string/string.h: In >> function `const T dlib::string_cast(cons >> >> >> t wchar_t*)': >> >> >> dlib/bayes_utils/../string/string.h:214: >> error: `wstring' is not a member of `st >> >> >> d' >> >> >> In file included from >> dlib/bayes_utils/../map/../unicode.h:6, >> >> >> from >> dlib/bayes_utils/../map/../serialize.h:121, >> >> >> from >> dlib/bayes_utils/../map/map_kernel_1.h:11, >> >> >> from >> dlib/bayes_utils/../map.h:6, >> >> >> from >> dlib/bayes_utils/bayes_utils.h:9, >> >> >> from >> dlib/bayes_utils.h:6, >> >> >> from >> bayes_net_ex.cpp:39: >> >> >> dlib/bayes_utils/../map/../unicode/unicode.h: >> At global scope: >> >> >> dlib/bayes_utils/../map/../unicode/unicode.h:521: >> error: expected unqualified-id >> >> >> before '&' token >> >> >> dlib/bayes_utils/../map/../unicode/unicode.h:521: >> error: expected `,' or `...' b >> >> >> efore '&' token >> >> >> dlib/bayes_utils/../map/../unicode/unicode.h:522: >> error: ISO C++ forbids declara >> >> >> tion of `parameter' with no type >> >> >> dlib/bayes_utils/../map/../unicode/unicode.h:524: >> error: expected init-declarato >> >> >> r before "convert_utf32_to_wstring" >> >> >> dlib/bayes_utils/../map/../unicode/unicode.h:524: >> error: expected `,' or `;' bef >> >> >> ore "convert_utf32_to_wstring" >> >> >> dlib/bayes_utils/../map/../unicode/unicode.h:528: >> error: expected init-declarato >> >> >> r before "convert_mbstring_to_wstring" >> >> >> dlib/bayes_utils/../map/../unicode/unicode.h:528: >> error: expected `,' or `;' bef >> >> >> ore "convert_mbstring_to_wstring" >> >> >> dlib/bayes_utils/../map/../unicode/unicode.h:533: >> error: expected unqualified-id >> >> >> before '&' token >> >> >> dlib/bayes_utils/../map/../unicode/unicode.h:533: >> error: expected `,' or `...' b >> >> >> efore '&' token >> >> >> dlib/bayes_utils/../map/../unicode/unicode.h:534: >> error: ISO C++ forbids declara >> >> >> tion of `parameter' with no type >> >> >> In file included from >> dlib/bayes_utils/../map/map_kernel_1.h:11, >> >> >> from >> dlib/bayes_utils/../map.h:6, >> >> >> from >> dlib/bayes_utils/bayes_utils.h:9, >> >> >> from >> dlib/bayes_utils.h:6, >> >> >> from >> bayes_net_ex.cpp:39: >> >> >> dlib/bayes_utils/../map/../serialize.h:738: >> error: expected unqualified-id befor >> >> >> e '&' token >> >> >> dlib/bayes_utils/../map/../serialize.h:738: >> error: expected `,' or `...' before >> >> >> '&' token >> >> >> dlib/bayes_utils/../map/../serialize.h:741: >> error: ISO C++ forbids declaration o >> >> >> f `parameter' with no type >> >> >> dlib/bayes_utils/../map/../serialize.h: >> In function `void dlib::serialize(int)': >> >> >> >> >> >> dlib/bayes_utils/../map/../serialize.h:742: >> error: `item' undeclared (first use >> >> >> this function) >> >> >> dlib/bayes_utils/../map/../serialize.h:742: >> error: (Each undeclared identifier i >> >> >> s reported only once for each function >> it appears in.) >> >> >> dlib/bayes_utils/../map/../serialize.h:743: >> error: `out' undeclared (first use t >> >> >> his function) >> >> >> dlib/bayes_utils/../map/../serialize.h: >> At global scope: >> >> >> dlib/bayes_utils/../map/../serialize.h:752: >> error: variable or field `deserializ >> >> >> e' declared void >> >> >> dlib/bayes_utils/../map/../serialize.h:752: >> error: `dlib::deserialize' declared >> >> >> as an `inline' variable >> >> >> dlib/bayes_utils/../map/../serialize.h:752: >> error: `int dlib::deserialize' redec >> >> >> lared as different kind of symbol >> >> >> dlib/bayes_utils/../map/../serialize.h:677: >> error: previous declaration of `temp >> >> >> late void >> dlib::deserialize(std::vector&, std >> >> >> ::istream&)' >> >> >> dlib/bayes_utils/../map/../serialize.h:752: >> error: declaration of `int dlib::des >> >> >> erialize' >> >> >> dlib/bayes_utils/../map/../serialize.h:677: >> error: conflicts with previous decla >> >> >> ration ` namespace dlib { >> }::deserialize' >> >> >> dlib/bayes_utils/../map/../serialize.h:753: >> error: `wstring' is not a member of >> >> >> `std' >> >> >> dlib/bayes_utils/../map/../serialize.h:753: >> error: `item' was not declared in th >> >> >> is scope >> >> >> dlib/bayes_utils/../map/../serialize.h:754: >> error: expected primary-expression b >> >> >> efore '&' token >> >> >> dlib/bayes_utils/../map/../serialize.h:755: >> error: `in' was not declared in this >> >> >> scope >> >> >> dlib/bayes_utils/../map/../serialize.h:756: >> error: initializer expression list t >> >> >> reated as compound expression >> >> >> dlib/bayes_utils/../map/../serialize.h:756: >> error: expected `,' or `;' before '{ >> >> >> ' token >> >> >> >> >> >> >> >> >> _________________________________________________________________ >> Time for vacation? WIN what you need- enter now! >> http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm >> >> >> >> ------------------------------ >> Time for vacation? WIN what you need. Enter Now!<http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm> >> > > |
|
From: Davis K. <dav...@us...> - 2008-07-25 02:52:17
|
No problem. You should be able to compile the bayes_net_gu_ex in visual studio or mingw (and even cygwin now). In fact, I use it in Windows XP all the time. But I guess you are having trouble getting it compiled in Windows XP still? -Davis On Thu, Jul 24, 2008 at 10:43 PM, Nabeel Alzahrani <nza...@ho...> wrote: > Thank you so much for your help. I have tried the library with Mingw and > it is working. > Actually I need to see the GUI of the bayes network of the > "bayes_net_gui_ex" example , so it is inevitable to install Linux in my > Windows XP :-( > > Nabeel > > ------------------------------ > Date: Thu, 24 Jul 2008 20:10:26 -0400 > From: dav...@us... > To: nza...@ho...; dcl...@li... > > Subject: Re: dlib C++ library Compilation Errors > > I just installed cygwin and modified the library so that it compiles > without any of these errors. I put a snapshot of it in > http://dclib.sf.net/snapshot so you can give that copy a try. > > -Davis > > On Tue, Jul 22, 2008 at 3:42 PM, Davis King < > dav...@us...> wrote: > > Ah, it is the std::wstring. Some of the windows ports of gcc to windows > are missing the wide character stuff from the standard C++ library. You can > maybe get it working by adding a #ifdef around the offending bits of code to > disable them when they are used on the version of gcc used by cygwin 1.5. > > Or you could try using mingw. I believe it's newest version isn't missing > these things from its library. > > I'll play around with cygwin when I get some free time and see if I can't > find a workaround. But let me know if you find an easy solution :) > > -Davis > > > On Tue, Jul 22, 2008 at 3:23 PM, Nabeel Alzahrani <nza...@ho...> > wrote: > > I did not put anything into the /home/Bill/dlib/dlib folder. If I just go > to the examples folder and do ""g++ -DNO_MAKEFILE bayes_net_ex.cpp", I got > the error messages: > ------------------------------------------------------ > > Bill@pc ~ > $ ls > dlib > > Bill@pc ~ > $ cd dlib > > Bill@pc ~/dlib > $ ls > New Text Document.txt dlib documentation.html makefile.txt > bayes_net_ex.cpp docs examples project.cpp > > Bill@pc ~/dlib > $ pwd > /home/Bill/dlib > > Bill@pc ~/dlib > $ cd examples > > Bill@pc ~/dlib/examples > $ g++ -DNO_MAKEFILE bayes_net_ex.cpp > bayes_net_ex.cpp:38:30: dlib/bayes_utils.h: No such file or directory > bayes_net_ex.cpp:39:30: dlib/graph_utils.h: No such file or directory > bayes_net_ex.cpp:40:24: dlib/graph.h: No such file or directory > bayes_net_ex.cpp:41:33: dlib/directed_graph.h: No such file or directory > bayes_net_ex.cpp:45: error: expected namespace-name before ';' token > bayes_net_ex.cpp:45: error: `<type error>' is not a namespace > bayes_net_ex.cpp: In function `int main()': > bayes_net_ex.cpp:59: error: expected namespace-name before ';' token > bayes_net_ex.cpp:59: error: `<type error>' is not a namespace > bayes_net_ex.cpp:64: error: `directed_graph' undeclared (first use this > function > ) > bayes_net_ex.cpp:64: error: (Each undeclared identifier is reported only > once fo > r each function it appears in.) > bayes_net_ex.cpp:64: error: `bayes_node' undeclared (first use this > function) > bayes_net_ex.cpp:64: error: `::kernel_1a_c' has not been declared > bayes_net_ex.cpp:64: error: expected `;' before "bn" > bayes_net_ex.cpp:80: error: `bn' undeclared (first use this function) > bayes_net_ex.cpp:88: error: `set_node_num_values' undeclared (first use > this fun > ction) > bayes_net_ex.cpp:93: error: `assignment' undeclared (first use this > function) > bayes_net_ex.cpp:93: error: expected `;' before "parent_state" > bayes_net_ex.cpp:102: error: `parent_state' undeclared (first use this > function) > > bayes_net_ex.cpp:102: error: `set_node_probability' undeclared (first use > this f > unction) > bayes_net_ex.cpp:167: error: expected init-declarator before '<' token > bayes_net_ex.cpp:167: error: expected `,' or `;' before '<' token > bayes_net_ex.cpp:168: error: `join_tree_type' undeclared (first use this > functio > n) > bayes_net_ex.cpp:168: error: expected `;' before "join_tree" > bayes_net_ex.cpp:174: error: `join_tree' undeclared (first use this > function) > bayes_net_ex.cpp:174: error: `create_moral_graph' undeclared (first use > this fun > ction) > bayes_net_ex.cpp:175: error: `create_join_tree' undeclared (first use this > funct > ion) > bayes_net_ex.cpp:180: error: `bayesian_network_join_tree' undeclared (first > use > this function) > bayes_net_ex.cpp:180: error: expected `;' before "solution" > bayes_net_ex.cpp:185: error: `solution' undeclared (first use this > function) > bayes_net_ex.cpp:200: error: `set_node_value' undeclared (first use this > functio > n) > bayes_net_ex.cpp:201: error: `set_node_as_evidence' undeclared (first use > this f > unction) > bayes_net_ex.cpp:205: error: expected `;' before "solution_with_evidence" > bayes_net_ex.cpp:209: error: `solution_with_evidence' undeclared (first use > this > function) > bayes_net_ex.cpp:255: error: `bayesian_network_gibbs_sampler' undeclared > (first > use this function) > bayes_net_ex.cpp:255: error: expected `;' before "sampler" > bayes_net_ex.cpp:274: error: `sampler' undeclared (first use this function) > bayes_net_ex.cpp:276: error: `node_value' undeclared (first use this > function) > > Bill@pc ~/dlib/examples > $ > ------------------------------------------------------ > However, if I changed the paths in the bayes_net_ex.cpp file to reflect the > location of the dlib library by changing the includes to: > #include "../dlib/bayes_utils.h" > #include "../dlib/graph_utils.h" > #include "../dlib/graph.h" > #include "../dlib/directed_graph.h" > and do ""g++ -DNO_MAKEFILE bayes_net_ex.cpp", I got the error messages: > ------------------------------------------------------- > > Bill@pc ~ > $ ls > dlib > > Bill@pc ~ > $ cd dlib > > Bill@pc ~/dlib > $ ls > New Text Document.txt dlib documentation.html makefile.txt > bayes_net_ex.cpp docs examples project.cpp > > Bill@pc ~/dlib > $ cd examples > > Bill@pc ~/dlib/examples > $ g++ bayes_net_ex.cpp > In file included from ../dlib/bayes_utils/../string.h:6, > from ../dlib/bayes_utils/bayes_utils.h:8, > from ../dlib/bayes_utils.h:6, > from bayes_net_ex.cpp:38: > ../dlib/bayes_utils/../string/string.h:88: error: expected init-declarator > befor > e "cast_to_wstring" > ../dlib/bayes_utils/../string/string.h:88: error: expected `;' before > "cast_to_w > string" > ../dlib/bayes_utils/../string/string.h: In function `const T > dlib::string_cast(c > onst wchar_t*)': > ../dlib/bayes_utils/../string/string.h:214: error: `wstring' is not a > member of > `std' > In file included from ../dlib/bayes_utils/../map/../unicode.h:6, > from ../dlib/bayes_utils/../map/../serialize.h:121, > from ../dlib/bayes_utils/../map/map_kernel_1.h:11, > from ../dlib/bayes_utils/../map.h:6, > from ../dlib/bayes_utils/bayes_utils.h:9, > from ../dlib/bayes_utils.h:6, > from bayes_net_ex.cpp:38: > ../dlib/bayes_utils/../map/../unicode/unicode.h: At global scope: > ../dlib/bayes_utils/../map/../unicode/unicode.h:521: error: expected > unqualified > -id before '&' token > ../dlib/bayes_utils/../map/../unicode/unicode.h:521: error: expected `,' or > `... > ' before '&' token > ../dlib/bayes_utils/../map/../unicode/unicode.h:522: error: ISO C++ forbids > decl > aration of `parameter' with no type > ../dlib/bayes_utils/../map/../unicode/unicode.h:524: error: expected > init-declar > ator before "convert_utf32_to_wstring" > ../dlib/bayes_utils/../map/../unicode/unicode.h:524: error: expected `,' or > `;' > before "convert_utf32_to_wstring" > ../dlib/bayes_utils/../map/../unicode/unicode.h:528: error: expected > init-declar > ator before "convert_mbstring_to_wstring" > ../dlib/bayes_utils/../map/../unicode/unicode.h:528: error: expected `,' or > `;' > before "convert_mbstring_to_wstring" > ../dlib/bayes_utils/../map/../unicode/unicode.h:533: error: expected > unqualified > -id before '&' token > ../dlib/bayes_utils/../map/../unicode/unicode.h:533: error: expected `,' or > `... > ' before '&' token > ../dlib/bayes_utils/../map/../unicode/unicode.h:534: error: ISO C++ forbids > decl > aration of `parameter' with no type > In file included from ../dlib/bayes_utils/../map/map_kernel_1.h:11, > from ../dlib/bayes_utils/../map.h:6, > from ../dlib/bayes_utils/bayes_utils.h:9, > from ../dlib/bayes_utils.h:6, > from bayes_net_ex.cpp:38: > ../dlib/bayes_utils/../map/../serialize.h:738: error: expected > unqualified-id be > fore '&' token > ../dlib/bayes_utils/../map/../serialize.h:738: error: expected `,' or `...' > befo > re '&' token > ../dlib/bayes_utils/../map/../serialize.h:741: error: ISO C++ forbids > declaratio > n of `parameter' with no type > ../dlib/bayes_utils/../map/../serialize.h: In function `void > dlib::serialize(int > )': > ../dlib/bayes_utils/../map/../serialize.h:742: error: `item' undeclared > (first u > se this function) > ../dlib/bayes_utils/../map/../serialize.h:742: error: (Each undeclared > identifie > r is reported only once for each function it appears in.) > ../dlib/bayes_utils/../map/../serialize.h:743: error: `out' undeclared > (first us > e this function) > ../dlib/bayes_utils/../map/../serialize.h: At global scope: > ../dlib/bayes_utils/../map/../serialize.h:752: error: variable or field > `deseria > lize' declared void > ../dlib/bayes_utils/../map/../serialize.h:752: error: `dlib::deserialize' > declar > ed as an `inline' variable > ../dlib/bayes_utils/../map/../serialize.h:752: error: `int > dlib::deserialize' re > declared as different kind of symbol > ../dlib/bayes_utils/../map/../serialize.h:677: error: previous declaration > of `t > emplate<class T, class alloc> void dlib::deserialize(std::vector<_Tp, > _Alloc>&, > std::istream&)' > ../dlib/bayes_utils/../map/../serialize.h:752: error: declaration of `int > dlib:: > deserialize' > ../dlib/bayes_utils/../map/../serialize.h:677: error: conflicts with > previous de > claration ` namespace dlib { }::deserialize' > ../dlib/bayes_utils/../map/../serialize.h:753: error: `wstring' is not a > member > of `std' > ../dlib/bayes_utils/../map/../serialize.h:753: error: `item' was not > declared in > this scope > ../dlib/bayes_utils/../map/../serialize.h:754: error: expected > primary-expressio > n before '&' token > ../dlib/bayes_utils/../map/../serialize.h:755: error: `in' was not declared > in t > his scope > ../dlib/bayes_utils/../map/../serialize.h:756: error: initializer > expression lis > t treated as compound expression > ../dlib/bayes_utils/../map/../serialize.h:756: error: expected `,' or `;' > before > '{' token > > Bill@pc ~/dlib/examples > $ > ------------------------------------------------------- > ------------------------------ > Date: Tue, 22 Jul 2008 07:16:09 -0400 > From: dav...@us... > To: nza...@ho... > Subject: Re: dlib C++ library Compilation Errors > CC: dcl...@li... > > > Don't put anything into the /home/Bill/dlib/dlib folder. That is probably > your problem. Try just going into the examples folder and doing "g++ > -DNO_MAKEFILE bayes_net_ex.cpp -I ..". > > You might also get linker errors about gdi32, comctl32, user32, ws2_32, or > imm32. So if that happens try adding -l gdi32 -l imm32, etc... > > Let me know if that doesn't fix your problem. > > -Davis > > On Tue, Jul 22, 2008 at 3:35 AM, Nabeel Alzahrani <nza...@ho...> > wrote: > > > Hello Davis > > I tried to run the example bayes_net_ex.cpp but I got many error messages. > I am using Cygwin version 1.5.25 (you can tell using the command uname -r) > under Windows XP Home edition with service pack 3. > I downloaded the library to a folder named dlib, so I have the following > folders: > /home/Bill/dlib/dlib > /home/Bill/dlib/docs > /home/Bill/dlib/examples > I moved the example bayes_net_ex.cpp from the folder > /home/Bill/dlib/examples to the folder /home/Bill/dlib/dlib and compiled it > using the command g++ bayes_net_ex.cpp and gcc bayes_net_ex.cpp with and > without using the compiler director #define NO_MAKEFILE as the first line. > > The error messages are: > $ g++ bayes_net_ex.cpp > > -------------------------------------------------------------------------------------------------------- > In file included from > dlib/bayes_utils/../string.h:6, > > > from > dlib/bayes_utils/bayes_utils.h:8, > > > from > dlib/bayes_utils.h:6, > > > from > bayes_net_ex.cpp:39: > > > dlib/bayes_utils/../string/string.h:88: > error: expected init-declarator before " > > > cast_to_wstring" > > > dlib/bayes_utils/../string/string.h:88: > error: expected `;' before "cast_to_wstr > > > ing" > > > dlib/bayes_utils/../string/string.h: In > function `const T dlib::string_cast(cons > > > t wchar_t*)': > > > dlib/bayes_utils/../string/string.h:214: > error: `wstring' is not a member of `st > > > d' > > > In file included from > dlib/bayes_utils/../map/../unicode.h:6, > > > from > dlib/bayes_utils/../map/../serialize.h:121, > > > from > dlib/bayes_utils/../map/map_kernel_1.h:11, > > > from > dlib/bayes_utils/../map.h:6, > > > from > dlib/bayes_utils/bayes_utils.h:9, > > > from > dlib/bayes_utils.h:6, > > > from > bayes_net_ex.cpp:39: > > > dlib/bayes_utils/../map/../unicode/unicode.h: > At global scope: > > > dlib/bayes_utils/../map/../unicode/unicode.h:521: > error: expected unqualified-id > > > before '&' token > > > dlib/bayes_utils/../map/../unicode/unicode.h:521: > error: expected `,' or `...' b > > > efore '&' token > > > dlib/bayes_utils/../map/../unicode/unicode.h:522: > error: ISO C++ forbids declara > > > tion of `parameter' with no type > > > dlib/bayes_utils/../map/../unicode/unicode.h:524: > error: expected init-declarato > > > r before "convert_utf32_to_wstring" > > > dlib/bayes_utils/../map/../unicode/unicode.h:524: > error: expected `,' or `;' bef > > > ore "convert_utf32_to_wstring" > > > dlib/bayes_utils/../map/../unicode/unicode.h:528: > error: expected init-declarato > > > r before "convert_mbstring_to_wstring" > > > dlib/bayes_utils/../map/../unicode/unicode.h:528: > error: expected `,' or `;' bef > > > ore "convert_mbstring_to_wstring" > > > dlib/bayes_utils/../map/../unicode/unicode.h:533: > error: expected unqualified-id > > > before '&' token > > > dlib/bayes_utils/../map/../unicode/unicode.h:533: > error: expected `,' or `...' b > > > efore '&' token > > > dlib/bayes_utils/../map/../unicode/unicode.h:534: > error: ISO C++ forbids declara > > > tion of `parameter' with no type > > > In file included from > dlib/bayes_utils/../map/map_kernel_1.h:11, > > > from > dlib/bayes_utils/../map.h:6, > > > from > dlib/bayes_utils/bayes_utils.h:9, > > > from > dlib/bayes_utils.h:6, > > > from > bayes_net_ex.cpp:39: > > > dlib/bayes_utils/../map/../serialize.h:738: > error: expected unqualified-id befor > > > e '&' token > > > dlib/bayes_utils/../map/../serialize.h:738: > error: expected `,' or `...' before > > > '&' token > > > dlib/bayes_utils/../map/../serialize.h:741: > error: ISO C++ forbids declaration o > > > f `parameter' with no type > > > dlib/bayes_utils/../map/../serialize.h: > In function `void dlib::serialize(int)': > > > > > > dlib/bayes_utils/../map/../serialize.h:742: > error: `item' undeclared (first use > > > this function) > > > dlib/bayes_utils/../map/../serialize.h:742: > error: (Each undeclared identifier i > > > s reported only once for each function > it appears in.) > > > dlib/bayes_utils/../map/../serialize.h:743: > error: `out' undeclared (first use t > > > his function) > > > dlib/bayes_utils/../map/../serialize.h: > At global scope: > > > dlib/bayes_utils/../map/../serialize.h:752: > error: variable or field `deserializ > > > e' declared void > > > dlib/bayes_utils/../map/../serialize.h:752: > error: `dlib::deserialize' declared > > > as an `inline' variable > > > dlib/bayes_utils/../map/../serialize.h:752: > error: `int dlib::deserialize' redec > > > lared as different kind of symbol > > > dlib/bayes_utils/../map/../serialize.h:677: > error: previous declaration of `temp > > > late void > dlib::deserialize(std::vector&, std > > > ::istream&)' > > > dlib/bayes_utils/../map/../serialize.h:752: > error: declaration of `int dlib::des > > > erialize' > > > dlib/bayes_utils/../map/../serialize.h:677: > error: conflicts with previous decla > > > ration ` namespace dlib { > }::deserialize' > > > dlib/bayes_utils/../map/../serialize.h:753: > error: `wstring' is not a member of > > > `std' > > > dlib/bayes_utils/../map/../serialize.h:753: > error: `item' was not declared in th > > > is scope > > > dlib/bayes_utils/../map/../serialize.h:754: > error: expected primary-expression b > > > efore '&' token > > > dlib/bayes_utils/../map/../serialize.h:755: > error: `in' was not declared in this > > > scope > > > dlib/bayes_utils/../map/../serialize.h:756: > error: initializer expression list t > > > reated as compound expression > > > dlib/bayes_utils/../map/../serialize.h:756: > error: expected `,' or `;' before '{ > > > ' token > > > > > > > > > _________________________________________________________________ > Time for vacation? WIN what you need- enter now! > http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm > > > > ------------------------------ > Time for vacation? WIN what you need. Enter Now!<http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm> > > > > > ------------------------------ > With Windows Live for mobile, your contacts travel with you. Connect on > the go.<http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_mobile_072008> > |
|
From: Davis K. <dav...@us...> - 2008-07-26 03:10:47
|
You can get the reg file and a saved bayesian network here: http://davis.sytes.net/~davis/stuff/ The network is the one from the wikipedia article on bayesian networks: http://en.wikipedia.org/wiki/Bayesian_network In it I have assumed a node value of 1 corresponds to T and 0 to F in the wikipedia example. And I also set the grass wet variable as evidence with a value of 1. So if you hit the calculate posterior probability table button you can see what all the probabilities are given that the grass is wet. For example, in the wikipedia article they calculate P(rain = true | grass wet = true) = 0.3577 and this is indeed the value you see if you look in the posterior probability table tab for the rain variable. The help menu tells you how to add/remove nodes. Either windows or linux is fine since dlib works on both platforms. Just pick whatever one you like the most. So since you already have Windows XP installed I would just stick with that. And if you do development in windows I would recomend you use the free version of visual studio since it has a pretty nice IDE and compiler. Hope that helps, Davis On Fri, Jul 25, 2008 at 10:49 PM, Nabeel Alzahrani <nza...@ho...>wrote: > I could not downloaded the attachement chm_files...reg > because Hotmail gave me error message : Windows Live Hotmail has blocked > some attachments in this mail because they appear unsafe. > I have three questuions: > Could you resend it after rename it to doc extension then I will rename it > back to its original extension (i think .reg) to bypass Hotmail blocking > engine? > Could you advice me what is the best platform (Windows XP or Linux), and > development environment should I use to modify, compile and test > bayes_net_gui_ex.cpp? For example I want to test compound probability p(A, > B, C) and compound probability with multiple evidences p(A,B,C | E, F, G) ? > Could you expain how to use the bayes_net_gui_ex.cpp? I run it but after > I saw the GUI I do not understand what the example expect me to input and > how? > > Thank you, > Nabeel > > > ------------------------------ > > > Date: Fri, 25 Jul 2008 07:50:44 -0400 > > From: dav...@us... > To: nza...@ho...; dcl...@li... > Subject: Re: dlib C++ library Compilation Errors > > > I downloaded the chm file from the snapshot folder and it works fine on my > computer. I have seen this problem before though. There is some setting in > the windows registry that causes it to not open chm files depending on where > they are located on your hard drive (and a few other things probably). > Anyway, I attached a registry change that will probably make the chm file > work. And in any event, there is html documentation in the zip file too. > > I just compiled the bayes net gui with this command: > "C:\swdev\source\examples>g++ bayes_net_gui_ex.cpp -I .. -DNO_MAKEFILE -l > gdi32 -l comctl32 -l user32 -l ws2_32 -l imm32" > > The easiest way to make visual studio projects, or any projects like > makefiles, is probably to use cmake. You can download it from > www.cmake.org. Once you have it installed you can create a visual studio > project by opening a command prompt in the examples folder and typing > "cmakesetup .". Then when the cmake window appears you select configure and > then choose what compiler you want to use. Then you click configure and > then ok. Then you will have a project ready to use and it should just > compile without any trouble. > > Hope that helps, > -Davis > > > > On Fri, Jul 25, 2008 at 5:21 AM, Nabeel Alzahrani <nza...@ho...> > wrote: > > Yes, I still have trouble getting the examples compiled in Windows XP. For > example, When I use the command "gcc bayes_net_ex.cpp", I got many error > messages but when I use the command "gcc bayes_net_ex.cpp", it runs without > any problems. However, when I try to run the other example "g++ > bayes_net_gui_ex", I got many error message whereas the command "g++ > bayes_net_gui_ex" waits for ever. > > Regarding snapshot at http://dclib.sf.net/snapshot I faced the follwing > problems: > When I downloaded the file dlib_documentation_snapshot-rev2432.chm, I can > see the content of the help file on the left side as a tree structure but > when I click any item on the left, an error message appears on the right > side. The error message is : "The address is not valid-Most likely causes: > There might be a typing error in the address. If you clicked on a link, it > may be out of date.-What you can try: Retype the address.Go back to the > previous page." > The second file is "dlib_snapshot-rev2432.Zip" works fine for the > bayes_net_ex.cpp example with Cygwin but still I have problem with the > example bayes_net_gui_ex.cpp with both Cygwin and Mingw. > > Anyway I decided to work with Windows instead of Linux because I need to > use Graphics with Bayes netwrok so I installed Visual C++ 2008 Express > Edition but I have some questions: > What project types and templates should I select from the new project > window and how can I setup Visual C++ to run the GUI Bayes example > "bayes_net_gui_ex" correctly. i.e, how can I put the dlib library inside the > Visual C++ and what types of changes do I need to do for the files in the > Solution explorer. For example, I have 3 folders (Header Files, Resource > Files, Source Files) and each folder has at least 2 files. Do I need to do > any changes for these files? > > Thank you, > Nabeel > > Error messages when I compile the bayes_net_gu_ex in mingw using > dlib_snapshot-rev2432. > > ------------------------------------------------------------------------------------------------------------ > Bill@PC ~/dlib_snapshot-rev2432/examples > $ g++ bayes_net_gui_ex.cpp > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0x19c): > undefined reference to `dlib::base_window::show()' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0x1aa): > undefined reference to `dlib::base_window::wait_until_closed() const' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0x4bd): > undefined reference to > `dlib::named_rectangle::named_rectangle(dlib::drawable_window&)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0x4de): > undefined reference to > `dlib::tabbed_display::tabbed_display(dlib::drawable_window&)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0x6de): > undefined reference to `dlib::base_window::set_title(std::string const&)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0x7ad): > undefined reference to `dlib::base_window::set_size(int, int)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0x997): > undefined reference to `dlib::button::set_name(std::string const&)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0xa62): > undefined reference to `dlib::named_rectangle::set_name(std::string const&)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0xb2d): > undefined reference to `dlib::label::set_text(std::string const&)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0xbf8): > undefined reference to `dlib::toggle_button::set_name(std::string const&)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0xcc3): > undefined reference to `dlib::label::set_text(std::string const&)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0xd8e): > undefined reference to `dlib::label::set_text(std::string const&)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0xe2b): > undefined reference to `dlib::tabbed_display::set_number_of_tabs(unsigned > long)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0xe83): > undefined reference to `dlib::tabbed_display::set_tab_name(unsigned long, > std::string const&)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0xf56): > undefined reference to `dlib::tabbed_display::set_tab_name(unsigned long, > std::string const&)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0x1007): > undefined reference to `dlib::widget_group::add(dlib::drawable&, unsigned > long, unsigned long)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0x1033): > undefined reference to `dlib::widget_group::add(dlib::drawable&, unsigned > long, unsigned long)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0x1057): > undefined reference to `dlib::tabbed_display::set_tab_group(unsigned long, > dlib::widget_group&)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0x107b): > undefined reference to `dlib::tabbed_display::set_tab_group(unsigned long, > dlib::widget_group&)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0x222a): > undefined reference to `dlib::tabbed_display::~tabbed_display()' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0x225c): > undefined reference to `dlib::named_rectangle::~named_rectangle()' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0x26bd): > undefined reference to > `dlib::named_rectangle::named_rectangle(dlib::drawable_window&)' > C:/DOCUME~1/Bill/LOCALS~1/Temp/ccJiRkbZ.o:bayes_net_gui_ex.cpp:(.text+0x26de): > u > > ---------------------------------------------------------------------------------------------------------- > Error messages when I compile the bayes_net_gu_ex in cygwin using > dlib_snapshot-rev2432. > > ----------------------------------------------------------------------------------------------------------- > box_win()]+0x330): undefined reference to > `dlib::list_box_helper::list_box<std:: > basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~list_box() > ' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib20open_file_box_helper7box_winD0Ev[dlib::open_file_box_helper::box_win::~ > box_win()]+0x34f): undefined reference to > `dlib::list_box_helper::list_box<std:: > basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~list_box() > ' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib20open_file_box_helper7box_winD1Ev[dlib::open_file_box_helper::box_win::~ > box_win()]+0x4f): undefined reference to > `dlib::base_window::close_window()' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib20open_file_box_helper7box_winD1Ev[dlib::open_file_box_helper::box_win::~ > box_win()]+0x2f2): undefined reference to > `dlib::list_box_helper::list_box<std:: > basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~list_box() > ' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib20open_file_box_helper7box_winD1Ev[dlib::open_file_box_helper::box_win::~ > box_win()]+0x311): undefined reference to > `dlib::list_box_helper::list_box<std:: > basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~list_box() > ' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib20open_file_box_helper7box_winD1Ev[dlib::open_file_box_helper::box_win::~ > box_win()]+0x330): undefined reference to > `dlib::list_box_helper::list_box<std:: > basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~list_box() > ' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib20open_file_box_helper7box_winD1Ev[dlib::open_file_box_helper::box_win::~ > box_win()]+0x34f): undefined reference to > `dlib::list_box_helper::list_box<std:: > basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~list_box() > ' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib8menu_bar9hide_menuEv[dlib::menu_bar::hide_menu()]+0x6b): undefined > refer > ence to `dlib::base_window::invalidate_rectangle(dlib::rectangle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib10popup_menu20forwarded_on_keydownEmbm[dlib::popup_menu::forwarded_on_key > down(unsigned long, bool, unsigned long)]+0x260): undefined reference to > `dlib:: > base_window::invalidate_rectangle(dlib::rectangle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib10popup_menu20forwarded_on_keydownEmbm[dlib::popup_menu::forwarded_on_key > down(unsigned long, bool, unsigned long)]+0x394): undefined reference to > `dlib:: > base_window::invalidate_rectangle(dlib::rectangle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib10popup_menu20forwarded_on_keydownEmbm[dlib::popup_menu::forwarded_on_key > down(unsigned long, bool, unsigned long)]+0x7ec): undefined reference to > `dlib:: > base_window::invalidate_rectangle(dlib::rectangle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib10popup_menu20forwarded_on_keydownEmbm[dlib::popup_menu::forwarded_on_key > down(unsigned long, bool, unsigned long)]+0x830): undefined reference to > `dlib:: > base_window::invalidate_rectangle(dlib::rectangle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib10popup_menu17select_first_itemEv[dlib::popup_menu::select_first_item()]+ > 0x143): more undefined references to > `dlib::base_window::invalidate_rectangle(dl > ib::rectangle const&)' follow > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib8menu_bar9show_menuEm[dlib::menu_bar::show_menu(unsigned > long)]+0xba): un > defined reference to `dlib::base_window::get_pos(long&, long&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib8menu_bar9show_menuEm[dlib::menu_bar::show_menu(unsigned > long)]+0x13e): u > ndefined reference to `dlib::base_window::set_pos(long, long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib8menu_bar9show_menuEm[dlib::menu_bar::show_menu(unsigned > long)]+0x1a7): u > ndefined reference to > `dlib::base_window::invalidate_rectangle(dlib::rectangle c > onst&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib8menu_bar13set_main_fontEPKNS_4fontE[dlib::menu_bar::set_main_font(dlib:: > font const*)]+0x8b): undefined reference to > `dlib::base_window::invalidate_recta > ngle(dlib::rectangle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib8menu_barD0Ev[dlib::menu_bar::~menu_bar()]+0x4c): undefined > reference to > `dlib::drawable::disable_events()' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib8menu_barD0Ev[dlib::menu_bar::~menu_bar()]+0x64): undefined > reference to > `dlib::base_window::invalidate_rectangle(dlib::rectangle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib8menu_barD0Ev[dlib::menu_bar::~menu_bar()]+0xc9): undefined > reference to > `dlib::drawable::~drawable()' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib8menu_barD0Ev[dlib::menu_bar::~menu_bar()]+0xf3): undefined > reference to > `dlib::drawable::~drawable()' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib14timer_kernel_2INS_9text_gridEED0Ev[dlib::timer_kernel_2<dlib::text_grid > >::~timer_kernel_2()]+0x57): undefined reference to > `dlib::threaded_object::wait > () const' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib9text_grid11move_cursorElll[dlib::text_grid::move_cursor(long, long, > long > )]+0x1d2): undefined reference to > `dlib::base_window::invalidate_rectangle(dlib: > :rectangle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib9text_grid11move_cursorElll[dlib::text_grid::move_cursor(long, long, > long > )]+0x56f): undefined reference to > `dlib::base_window::invalidate_rectangle(dlib: > :rectangle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region14scroll_to_rectERKNS_9rectangleE[dlib::scrollable_reg > ion::scroll_to_rect(dlib::rectangle const&)]+0x94): undefined reference to > `dlib > ::scroll_bar::set_slider_pos(long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region14scroll_to_rectERKNS_9rectangleE[dlib::scrollable_reg > ion::scroll_to_rect(dlib::rectangle const&)]+0x124): undefined reference to > `dli > b::scroll_bar::set_slider_pos(long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region14scroll_to_rectERKNS_9rectangleE[dlib::scrollable_reg > ion::scroll_to_rect(dlib::rectangle const&)]+0x198): undefined reference to > `dli > b::scroll_bar::set_slider_pos(long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region14scroll_to_rectERKNS_9rectangleE[dlib::scrollable_reg > ion::scroll_to_rect(dlib::rectangle const&)]+0x22a): undefined reference to > `dli > b::scroll_bar::set_slider_pos(long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region14scroll_to_rectERKNS_9rectangleE[dlib::scrollable_reg > ion::scroll_to_rect(dlib::rectangle const&)]+0x259): undefined reference to > `dli > b::scroll_bar::slider_pos() const' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region14scroll_to_rectERKNS_9rectangleE[dlib::scrollable_reg > ion::scroll_to_rect(dlib::rectangle const&)]+0x28a): undefined reference to > `dli > b::scroll_bar::slider_pos() const' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region14scroll_to_rectERKNS_9rectangleE[dlib::scrollable_reg > ion::scroll_to_rect(dlib::rectangle const&)]+0x302): undefined reference to > `dli > b::base_window::invalidate_rectangle(dlib::rectangle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib14timer_kernel_2INS_9text_gridEE5startEv[dlib::timer_kernel_2<dlib::text_ > grid>::start()]+0x3d): undefined reference to `dlib::get_global_clock()' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib14timer_kernel_2INS_9text_gridEE5startEv[dlib::timer_kernel_2<dlib::text_ > grid>::start()]+0x64): undefined reference to `dlib::get_global_clock()' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib14timer_kernel_2INS_9text_gridEE5startEv[dlib::timer_kernel_2<dlib::text_ > grid>::start()]+0x75): undefined reference to > `dlib::timer_kernel_2_global_clock > ::add(dlib::timer_kernel_2_base*)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region13on_wheel_downEv[dlib::scrollable_region::on_wheel_do > wn()]+0x69): undefined reference to `dlib::scroll_bar::slider_pos() const' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region13on_wheel_downEv[dlib::scrollable_region::on_wheel_do > wn()]+0x84): undefined reference to > `dlib::scroll_bar::set_slider_pos(long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region13on_wheel_downEv[dlib::scrollable_region::on_wheel_do > wn()]+0xae): undefined reference to `dlib::scroll_bar::slider_pos() const' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region13on_wheel_downEv[dlib::scrollable_region::on_wheel_do > wn()]+0xc7): undefined reference to > `dlib::scroll_bar::set_slider_pos(long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region11on_wheel_upEv[dlib::scrollable_region::on_wheel_up() > ]+0x69): undefined reference to `dlib::scroll_bar::slider_pos() const' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region11on_wheel_upEv[dlib::scrollable_region::on_wheel_up() > ]+0x84): undefined reference to `dlib::scroll_bar::set_slider_pos(long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region11on_wheel_upEv[dlib::scrollable_region::on_wheel_up() > ]+0xae): undefined reference to `dlib::scroll_bar::slider_pos() const' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region11on_wheel_upEv[dlib::scrollable_region::on_wheel_up() > ]+0xc7): undefined reference to `dlib::scroll_bar::set_slider_pos(long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib9text_grid13on_user_eventEi[dlib::text_grid::on_user_event(int)]+0x9a): > u > ndefined reference to > `dlib::base_window::invalidate_rectangle(dlib::rectangle c > onst&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib17scrollable_region7set_posEll[dlib::scrollable_region::set_pos(long, > lon > g)]+0xe9): undefined reference to `dlib::scroll_bar::set_pos(long, long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib17scrollable_region7set_posEll[dlib::scrollable_region::set_pos(long, > lon > g)]+0x162): undefined reference to `dlib::scroll_bar::set_pos(long, long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib10scroll_bar6enableEv[dlib::scroll_bar::enable()]+0x16): undefined > refere > nce to `dlib::scroll_bar::show_slider()' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib17scrollable_region11set_z_orderEl[dlib::scrollable_region::set_z_order(l > ong)]+0x66): undefined reference to `dlib::drawable::set_z_order(long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib10scroll_bar11set_z_orderEl[dlib::scroll_bar::set_z_order(long)]+0x19): > u > ndefined reference to `dlib::drawable::set_z_order(long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib10scroll_bar11set_z_orderEl[dlib::scroll_bar::set_z_order(long)]+0x30): > u > ndefined reference to `dlib::drawable::set_z_order(long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib10scroll_bar11set_z_orderEl[dlib::scroll_bar::set_z_order(long)]+0x47): > u > ndefined reference to `dlib::drawable::set_z_order(long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib10scroll_bar11set_z_orderEl[dlib::scroll_bar::set_z_order(long)]+0x5c): > u > ndefined reference to `dlib::drawable::set_z_order(long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib10scroll_bar11set_z_orderEl[dlib::scroll_bar::set_z_order(long)]+0x73): > m > ore undefined references to `dlib::drawable::set_z_order(long)' follow > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib9text_gridD0Ev[dlib::text_grid::~text_grid()]+0x4c): undefined > reference > to `dlib::drawable::disable_events()' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > ZN4dlib9text_gridD0Ev[dlib::text_grid::~text_grid()]+0x74): undefined > reference > to `dlib::base_window::invalidate_rectangle(dlib::rectangle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib8drawable13set_main_fontEPKNS_4fontE[dlib::drawable::set_main_font(dlib:: > font const*)]+0x75): undefined reference to > `dlib::base_window::invalidate_recta > ngle(dlib::rectangle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib15zoomable_region11set_z_orderEl[dlib::zoomable_region::set_z_order(long) > ]+0x66): undefined reference to `dlib::drawable::set_z_order(long)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib21directed_graph_drawerINS_23directed_graph_kernel_1INS_10bayes_nodeEcNS_ > > 23memory_manager_kernel_1IcLm0EEELb1EEEED0Ev[dlib::directed_graph_drawer<dlib::d > irected_graph_kernel_1<dlib::bayes_node, char, > dlib::memory_manager_kernel_1<cha > r, 0ul>, true> >::~directed_graph_drawer()]+0x4c): undefined reference to > `dlib: > :drawable::disable_events()' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib21directed_graph_drawerINS_23directed_graph_kernel_1INS_10bayes_nodeEcNS_ > > 23memory_manager_kernel_1IcLm0EEELb1EEEED0Ev[dlib::directed_graph_drawer<dlib::d > irected_graph_kernel_1<dlib::bayes_node, char, > dlib::memory_manager_kernel_1<cha > r, 0ul>, true> >::~directed_graph_drawer()]+0x64): undefined reference to > `dlib: > :base_window::invalidate_rectangle(dlib::rectangle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib21directed_graph_drawerINS_23directed_graph_kernel_1INS_10bayes_nodeEcNS_ > > 23memory_manager_kernel_1IcLm0EEELb1EEEE13on_mouse_downEmmllb[dlib::directed_gra > ph_drawer<dlib::directed_graph_kernel_1<dlib::bayes_node, char, > dlib::memory_man > ager_kernel_1<char, 0ul>, true> >::on_mouse_down(unsigned long, unsigned > long, l > ong, long, bool)]+0x10b1): undefined reference to > `dlib::base_window::invalidate > _rectangle(dlib::rectangle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib21directed_graph_drawerINS_23directed_graph_kernel_1INS_10bayes_nodeEcNS_ > > 23memory_manager_kernel_1IcLm0EEELb1EEEE13on_mouse_moveEmll[dlib::directed_graph > _drawer<dlib::directed_graph_kernel_1<dlib::bayes_node, char, > dlib::memory_manag > er_kernel_1<char, 0ul>, true> >::on_mouse_move(unsigned long, long, > long)]+0x1c0 > ): undefined reference to > `dlib::base_window::invalidate_rectangle(dlib::rectang > le const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib21directed_graph_drawerINS_23directed_graph_kernel_1INS_10bayes_nodeEcNS_ > > 23memory_manager_kernel_1IcLm0EEELb1EEEE10on_keydownEmbm[dlib::directed_graph_dr > awer<dlib::directed_graph_kernel_1<dlib::bayes_node, char, > dlib::memory_manager_ > kernel_1<char, 0ul>, true> >::on_keydown(unsigned long, bool, unsigned > long)]+0x > 69): undefined reference to > `dlib::base_window::invalidate_rectangle(dlib::recta > ngle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib21directed_graph_drawerINS_23directed_graph_kernel_1INS_10bayes_nodeEcNS_ > > 23memory_manager_kernel_1IcLm0EEELb1EEEE10on_keydownEmbm[dlib::directed_graph_dr > awer<dlib::directed_graph_kernel_1<dlib::bayes_node, char, > dlib::memory_manager_ > kernel_1<char, 0ul>, true> >::on_keydown(unsigned long, bool, unsigned > long)]+0x > ed): undefined reference to > `dlib::base_window::invalidate_rectangle(dlib::recta > ngle const&)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib21directed_graph_drawerINS_23directed_graph_kernel_1INS_10bayes_nodeEcNS_ > > 23memory_manager_kernel_1IcLm0EEELb1EEEE10on_keydownEmbm[dlib::directed_graph_dr > awer<dlib::directed_graph_kernel_1<dlib::bayes_node, char, > dlib::memory_manager_ > kernel_1<char, 0ul>, true> >::on_keydown(unsigned long, bool, unsigned > long)]+0x > 1d2): more undefined references to > `dlib::base_window::invalidate_rectangle(dlib > ::rectangle const&)' follow > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib14timer_kernel_2INS_9text_gridEE6threadEv[dlib::timer_kernel_2<dlib::text > _grid>::thread()]+0x85): undefined reference to `dlib::get_global_clock()' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib14timer_kernel_2INS_9text_gridEE6threadEv[dlib::timer_kernel_2<dlib::text > _grid>::thread()]+0xac): undefined reference to `dlib::get_global_clock()' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib14timer_kernel_2INS_9text_gridEE6threadEv[dlib::timer_kernel_2<dlib::text > _grid>::thread()]+0xbd): undefined reference to > `dlib::timer_kernel_2_global_clo > ck::remove(dlib::timer_kernel_2_base*)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib14timer_kernel_2INS_9text_gridEE6threadEv[dlib::timer_kernel_2<dlib::text > _grid>::thread()]+0xc2): undefined reference to `dlib::get_global_clock()' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib14timer_kernel_2INS_9text_gridEE6threadEv[dlib::timer_kernel_2<dlib::text > _grid>::thread()]+0xd3): undefined reference to > `dlib::timer_kernel_2_global_clo > ck::add(dlib::timer_kernel_2_base*)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib14timer_kernel_2INS_10text_fieldEE6threadEv[dlib::timer_kernel_2<dlib::te > xt_field>::thread()]+0x85): undefined reference to > `dlib::get_global_clock()' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib14timer_kernel_2INS_10text_fieldEE6threadEv[dlib::timer_kernel_2<dlib::te > xt_field>::thread()]+0xac): undefined reference to > `dlib::get_global_clock()' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.text$_ > > ZN4dlib14timer_kernel_2INS_10text_fieldEE6threadEv[dlib::timer_kernel_2<dlib::te > xt_field>::thread()]+0xbd): undefined reference to > `dlib::timer_kernel_2_global_ > clock::remove(dlib::timer_kernel_2_base*)' > > /cygdrive/c/DOCUME~1/Bill/LOCALS~1/Temp/ccCQxOWz.o:bayes_net_gui_ex.cpp:(.... [truncated message content] |