getting started with web server - vibe.d dub giving link error

Karabuta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 23 12:23:04 PDT 2016


On Sunday, 23 October 2016 at 14:53:48 UTC, aman wrote:
> On Saturday, 22 October 2016 at 17:23:58 UTC, Karabuta wrote:
>> [...]
>
> This time i started out with a fresh Ubuntu server and followed 
> instructions on the blog. Here's output. Please help:-
>
> /usr/lib/gcc/x86_64-linux-gnu/5/include/d/core/atomic.d:1381:13: error: static assert  "Invalid template type specified."
>              static assert(0, "Invalid template type 
> specified.");
>              ^
> ../.dub/packages/vibe-d-0.7.29/source/vibe/http/server.d:1388:51: note: instantiated from here: atomicLoad!(cast(MemoryOrder)5, shared(HTTPServerContext)[])
>     else return cast(HTTPServerContext[])atomicLoad(g_contexts);
>                                                    ^
> gdc failed with exit code 1.

I used DMD compiler for the tutorial, you are using GCC which 
might be the problem. GCC compiler seems too outdated. Try using 
DMD


More information about the Digitalmars-d-learn mailing list