Skip to content

compiling on windows with vS2022 #109

@craouette

Description

@craouette

Hi,

In order to compile on windows with Visual studio 2022, I needed to:

  • comment line 81 of src/SeExpr2/Platform.h:

from
inline double log2(double x) { return log(x) * 1.4426950408889634; }
to
//inline double log2(double x) { return log(x) * 1.4426950408889634; }

  • change line 155 of src/demos/imageSynth/imageSynth.cpp:

from
const unsigned char* ptrs[height];
to
unsigned char** ptrs = new unsigned char*[height];

  • change line 302 of src/demos/imageSynth/imageSynthForPaint3d.cpp

from
const unsigned char* ptrs[height];
to
unsigned char** ptrs = new unsigned char*[height];

These changes should not impact other platform.

Pierre

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