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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:19:23+00:00 2026-06-18T08:19:23+00:00

I am tring to compile an C code ( davinci_spi.c ). the corresponding header

  • 0

I am tring to compile an C code (davinci_spi.c). the corresponding header file is as follow:

davinci_spi.h:

    #ifndef _DAVINCI_SPI_H_
    #define _DAVINCI_SPI_H_

    struct davinci_spi_regs {
    dv_reg  gcr0;       /* 0x00 */
    dv_reg  gcr1;       /* 0x04 */
    dv_reg  int0;       /* 0x08 */
    dv_reg  lvl;        /* 0x0c */
    dv_reg  flg;        /* 0x10 */
    dv_reg  pc0;        /* 0x14 */
    dv_reg  pc1;        /* 0x18 */
    dv_reg  pc2;        /* 0x1c */
    dv_reg  pc3;        /* 0x20 */
    dv_reg  pc4;        /* 0x24 */
    dv_reg  pc5;        /* 0x28 */
    dv_reg  rsvd[3];
    dv_reg  dat0;       /* 0x38 */
    dv_reg  dat1;       /* 0x3c */
    dv_reg  buf;        /* 0x40 */
    dv_reg  emu;        /* 0x44 */
    dv_reg  delay;      /* 0x48 */
    dv_reg  def;        /* 0x4c */
    dv_reg  fmt0;       /* 0x50 */
    dv_reg  fmt1;       /* 0x54 */
    dv_reg  fmt2;       /* 0x58 */
    dv_reg  fmt3;       /* 0x5c */
    dv_reg  intvec0;    /* 0x60 */
    dv_reg  intvec1;    /* 0x64 */
    };

`
(I think remaining of file code is not important so not including them)

and when I am trying to compile davinci_spi.c I get this error:


In file included from D:/android/android/myprojects/test1/jni/davinci_spi.c:32:
D:/android/android/myprojects/test1/jni/davinci_spi.h:6: error: expected specifier-qualifier-list before 'dv_reg'

Note: I am using cygwin(with a C/C++ compiler added) and davinci_spi.c is a simple linux driver

  • 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-06-18T08:19:24+00:00Added an answer on June 18, 2026 at 8:19 am

    I bet that dv_reg is not being defined. Be sure to include the header file that defines the type dv_reg.

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

Sidebar

Related Questions

I'm trying to compile IL code using bat file and C#. Here is a
While trying to compile the code below: template <class T> struct scalar_log_minimum { public:
I m trying to compile source code, but receive: undefined reference to png_read_info' File
So I have some code that I am tring to compile and I keep
I am trying to compile code that works on os x and linux using
When trying to compile this code: #include <iostream> #include <vector> using namespace std; class
I trying to compile this code: Int64 itag = BitConverter.ToInt64(temp, 0); itag &= 0xFFFFFFFFFFFFFC00;
I am trying to compile a code that uses Boost's zlib wrappers. However, no
I am trying to compile a code that has a include directory with some
I'm trying to compile fortran code given to me by a labmate to run

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.