clr

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6647
    masterdanielsan
    Participant

    I’m trying to cross compile to a Raspberry Pi and am getting a lot of errors like:

    1>

    c:ringbuffer.h(22): error C2143: syntax error : missing ';' before ''template<''
    Diagnostics.h(41): error C2146: syntax error : missing ';' before identifier 'm_writeMutex'
    Diagnostics.h(41): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

    I think that these might be because of clr, but changing it to clr causes errors saying that you cannot use clr with current debug setup.

    also, is there a way to specify that I want to build using c++11 or c++14 ?

    #6648
    masterdanielsan
    Participant

    example:

    changing

    template<typename T>

    to

    template<class T>

    fixed an error… but this is just a c++ version difference, afaict.

    #6671
    support
    Keymaster

    The Visual Studio compiler and GCC are not 100% compatible when it comes to complex C++ templates. You may need to adjust your code so that both compilers can handle this (the problem is well-known, so googling for specific errors should easily get the fixing instructions).

    You can specify -std=c++11 or -std=c++14 in CFLAGS on the Makefile Settings page of VisualGDB Project Properties.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.