Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6886881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:48:56+00:00 2026-05-27T05:48:56+00:00

I do not understand where the error. why this error message: initialization from incompatible

  • 0

I do not understand where the error.
why this error message:
initialization from incompatible pointer type.
Help me please, friends.

const struct _displayout_default
{
const char* length;
const char**  buf;

}DisplayOut_DEFAULT[2] =  
{
    {
    "02", 
    (const char*[]){
        "01",
        "02",
        "03",
        "04"
        }
    },
    {
    "02", 
    (const char*[]){
        "01",
        "02",
        "03",
        "04"
        }
    }
};    

Update:

MPLAB® C Compiler
For PIC32 MCUs

C Standards Information
American National Standard for Information Systems – Programming Language – C.
American National Standards Institute (ANSI), 11 West 42nd. Street, New York,
New York, 10036.

GCC Documents
http://gcc.gnu.org/onlinedocs/
http://sourceware.org/binutils/

Compiler options:
-g -mlong-calls -DNDEBUG -Os

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:48:56+00:00Added an answer on May 27, 2026 at 5:48 am

    Edit (old answer gone)

    Unfortunately, I’m not able to reproduce the message with the same Compiler and same options:

    T:\>"c:\Program Files (x86)\Microchip\mplabc32\v2.01\bin\pic32-gcc.exe" -g -mlong-calls -DNDEBUG -Os test.c
    

    No Errors.

    Likewise with pic32mx-gcc-4.5.1.exe – No Errors.


    Details:

    Source

    const struct _displayout_default
    {
        const char* length;
        const char**  buf;
    
    }DisplayOut_DEFAULT[2] =  
    {
        {
            "02", 
            (const char*[]){
                "01",
                "02",
                "03",
                "04"
            }
        },
        {
            "02", 
            (const char*[]){
                "01",
                "02",
                "03",
                "04"
            }
        }
    };    
    
    int main(int argc, const char *argv[])
    {
    
        return 0;
    }
    

    Compiler version:

    • downloaded: mplabc32_v2_01_windows_installer.exe *148Mb !!*
    • version:

      T:\>"c:\Program Files (x86)\Microchip\mplabc32\v2.01\bin\pic32-gcc.exe" -v
      
        pic32-gcc.exe: 2: No such file or directory
        Using built-in specs.
        COLLECT_GCC=c:\Program Files (x86)\Microchip\mplabc32\v2.01\bin\pic32-gcc.exe
        COLLECT_LTO_WRAPPER=c:/program files
        (x86)/microchip/mplabc32/v2.01/bin/../pic32mx/bin/gcc/pic32mx/4.5.1/lto-wrapper.exeTarget:
        pic32mxConfigured with: ../../src45x/gcc/configure --build=i386-pc-linux-gnu
        --host=i586-mingw32msvc --target=pic32mx --disable-threads --disable-libmudflap
        --disable-libssp --disable-libstdcxx-pch --disable-hosted-libstdcxx
        --with-arch=pic32mx --enable-sgxx-sde-multilibs --disable-threads --with-gnu-as
        --with-gnu-ld --disable-sim --disable-bootstrap --enable-obsolete
        --disable-__cxa_atexit --disable-libfortran --enable-languages=c
        --disable-shared --with-newlib --disable-nls
        --prefix=/home/c11067/work/C32/builds/pic32-microchip-release-2.01-freeze-20110726/pic32-tools
        --disable-libgomp --without-headers --disable-libffi --enable-gofast
        --enable-poison-system-directories --program-prefix=pic32-
        --libexecdir=/home/c11067/work/C32/builds/pic32-microchip-release-2.01-freeze-20110726/pic32-tools/pic32mx/bin
        --with-dwarf2 --with-host-libstdcxx='-static-libgcc
        -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
        --with-libelf=/home/c11067/work/C32/builds/pic32-microchip-release-2.01-freeze-20110726/canadian-cross-build/mingw32-libs
        --enable-lto
        --with-gmp=/home/c11067/work/C32/builds/pic32-microchip-release-2.01-freeze-20110726/canadian-cross-build/mingw32-libs
        --with-ppl=/home/c11067/work/C32/builds/pic32-microchip-release-2.01-freeze-20110726/canadian-cross-build/mingw32-libs
        --with-cloog=/home/c11067/work/C32/builds/pic32-microchip-release-2.01-freeze-20110726/canadian-cross-build/mingw32-libs
        --with-zlib=/home/c11067/work/C32/builds/pic32-microchip-release-2.01-freeze-20110726/canadian-cross-build/mingw32-libs
        --with-bugurl=http://www.microchip.com/supportThread model: singlegcc version
        4.5.1 MPLAB C Compiler for PIC32 MCUs v2.01-20110816 (Microchip Technology)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I do not understand this error, do not generate error in JsonResult Test (),
All time am getting below error message in groovy... Could not understand whats causing
i got this message from the debugger: Pixture(1257,0xa0610500) malloc: *** error for object 0x21a8000:
I am getting an error I do not understand. I am using File:Find to
I have encountered a rather odd error that I do not understand. I created
I simply do not understand why both works: this.timer.Tick += new EventHandler(timer_Tick); this.timer.Tick +=
I do not understand the error in compilation. I don't see any syntax problems.
I get this error message while compiling: Assembly 'MyFramework [...]' uses 'System.Web.Extensions, Version=3.5.0.0 [...]'
I just ran across this error message while working in C# A property or
Compiler Error Message: CS1061: 'ASP.admin_users_aspx' does not contain a definition for 'Form1' and no

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.