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 6160761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:21:34+00:00 2026-05-23T21:21:34+00:00

I have a problem when I compile my program. It is written like this:

  • 0

I have a problem when I compile my program. It is written like this:

 AP_Var(AP_Var_group *group, Key index, const prog_char_t *name, Flags flags = k_flags_none);

The compiler tells me that

AP_Var.h:163: error: expected ',' or '...' before '*' token

To what I know, prog_char_t comes from another file called Betterstream.h, but what exactly is prog_char_t?

  • 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-23T21:21:35+00:00Added an answer on May 23, 2026 at 9:21 pm

    prog_char_t is defined as follows in AP_Common.h in the Arducopter source.

    // prog_char_t is used as a wrapper type for prog_char, which is
    // a character stored in flash. By using this wrapper type we can
    // auto-detect at compile time if a call to a string function is using
    // a flash-stored string or not
    typedef struct {
            char c;
    } prog_char_t;
    

    i.e. it defines a char which is stored in the program memory of an AVR microcontroller.

    The standard Arduino environment uses avr-libc which defines prog_char for the same purpose. It’s not clear to me why the Arducopter team chose to define this themselves.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem - i can't compile SqlCipher. I'm using this http://groups.google.com/group/sqlcipher/browse_thread/thread/55c6296b56bf4533/c792bbec6df7d4f4?tvc=2#c792bbec6df7d4f4 instructions
i am a beginner and i have a problem : this code doesnt compile
I'm having a problem when trying to compile the program in this tutorial from
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have a problem running a simple Hello-world program in C++ on my Windows
I have written a small program: void showrecord() { char *a[]={ O_BILLABLE_ACCOUNT,O_CUSTOMER_TYPE_INDICATOR, O_A_PARTY_MSISDN_ID,O_A_PARTY_EQUIPMENT_NUMBER, O_A_PARTY_IMSI,O_A_PARTY_LOCATION_INFO_CELL_ID,
OK so I have a C++ function with a header like this: int myfunc(vector<int>
I have written a fairly large program in Fortran 90. It has been working
I am very new to JAVA. I have written simple program (in Linux -VIM
I'm experiencing a weird problem with C today. Have a quick look at this

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.