Skip to content

Compile using cpp backend #506

Description

@jerous86

I want to use pixie in a nim program that can only be compiled with the cpp backend.
However, pixie cannot be compiled using this cpp backend on my system (mac OS 12).

For example,
nim cpp --gc:orc -d:release -r tests/all.nim
results in multiple errors like

.cache/nim/all_r/@m..@ssrc@spixie@ssimd@savx2.nim.cpp:197:5: error: no matching function for call to '_mm256_store_si256'
                                _mm256_store_si256(((void*) (p)), colorVec);
                                ^~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/avxintrin.h:3277:1: note: candidate function not viable: cannot convert argument of incomplete type
      'void *' to '__m256i *' for 1st argument
_mm256_store_si256(__m256i *__p, __m256i __a)

Anyway to get it compiling using nim cpp?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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