G++'s statements as expressions feature

2008-03-01 Thread davin.pear...@gmail.com
Consider the following code: #include iostream int main() { std::cout ({(void)123; apple;}) '\n'; // * std::cout ({(void)123; (const char*)apple;}) '\n'; } The line marked * gives the following compilation error: cd d:/home/3-autogc-nosplit/ make 2008/tests/t-22-bug.run * Compiling

Re: Trouble debugging some STL code

2018-01-28 Thread davin.pear...@gmail.com
The following code generates a linker error: #include #include #include #include #include #include #include class Writer { public: Writer& operator << (const char* s) { for (const char* ch = s; *ch != 0; ++ch) { printf("%c",*ch); } return *this;

Re: Trouble debugging some STL code

2018-02-04 Thread davin.pear...@gmail.com
On Tuesday, January 30, 2018 at 4:36:16 AM UTC+13, Richard Kettlewell wrote: > "davin.pearson" writes: > > > The following code generates a linker error: > [...] > > You’ve tried to explicitly instantiate a template, but got the syntax > wrong. See >

Please help me debug my C++ code

2018-04-02 Thread davin.pear...@gmail.com
Here is the location of my files: http://davinpearson.com/binaries/map-20180403-100601.tar.gz When I try to link map/map.cc it gives me the following error message: -*- mode: compilation; default-directory: "~/lisp++-projects/" -*- Compilation started at Tue Apr 3 09:54:15 cd