swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

[C++][Pistache-server] Compilation error from missing header "ByteArray.h"

Open vbs96 opened this issue 8 years ago • 0 comments

Description

When I tried to compile the generated Pistache server it gives me the following error:

/swagger-pistache/model/Frame.h:25:23: fatal error: ByteArray.h: No such file or directory

Frame.h:

#ifndef Frame_H_
#define Frame_H_


#include "ModelBase.h"

#include <string>
#include "ByteArray.h" //this header does not exists
#include "Event.h"
#include <map>
#include <vector>
Swagger-codegen version

2.4

Swagger declaration file content or url

https://raw.githubusercontent.com/deepviss/deepviss-server-example/master/src/main/resources/deep-viss.json

Command line used for generation

java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate / -i deep-viss.json / -l pistache-server / -o ../swagger-pistache

Steps to reproduce

Note: Assuming Pistache server is installed

  1. go to the folder where the code was generated
  2. copy json.hpp (from https://github.com/nlohmann/json) to model
  3. mkdir build && cd build
  4. cmake ..
  5. make

vbs96 avatar Aug 06 '18 14:08 vbs96