Skip to content

terminate called after throwing an instance of 'char const*' #79

@bignmllc

Description

@bignmllc

In the examples++/http_examples folder, using modified build.sh of:

#!/bin/bash
g++ -o http http.cpp -lsocket++
g++ -o http_2 http_2.cpp -lsocket++
g++ -o http_epoll http_epoll.cpp -lsocket++

everything compiles with no warnings or errors. The http and http_2 programs run fine. However, the http_epoll application runs and terminates with the following output:

$ ./http_epoll
terminate called after throwing an instance of 'char const*'
Aborted

Test environment:

$ g++ --version
g++ (Ubuntu 9.4.0-1ubuntu1~16.04) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ uname -a
Linux asusubuntu16 4.15.0-142-generic #146~16.04.1-Ubuntu SMP Tue Apr 13 09:27:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

I tried compiling with g++ v5 but got the same result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions