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
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;
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
>
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