Skip to content

compilation of sample code fails #82

@iori-yja

Description

@iori-yja

In sample code in readme.md, there are too few include statements.

Sample code start with below:

#include <msgpack.hpp>
#include <vector>

int main(void) {

But it should start with below as Quick start guide.

#include <msgpack.hpp>
#include <vector>
#include <string>
#include <iostream>

int main(void) {

And also, stating to compile c++ code with gcc as readme.md is ill.

gcc -lmsgpack myapp.c -o myapp

It should be:

g++ -lmsgpack myapp.c -o myapp

or

gcc -lmsgpack myapp.c -lstdc++ -o myapp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions