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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:59:02+00:00 2026-05-28T16:59:02+00:00

I have this project explained in Wiley-Embedded Signal Processing with the Micro Signal Architecture.2007

  • 0

I have this project explained in “Wiley-Embedded Signal Processing with the Micro Signal Architecture.2007” – 2D DCT/IDCT (image compression) implemented, and i want to combine (move these files to..) with another personal project with image processing (which have only *.cpp files) in Visual Dsp for Blackfin BF 537. (first in Simulator, and after that on the board BF537..)

The implemented project 2D DCT/IDCT has *.c and *.asm files and it works verry well. At some point, for some calculations, from C file is using a function declared (and implemented) in asm file.

I noticed that if i move these *.c files in my project (which contain only *.cpp files), i get lots of errors and some like this one:

"`[Error li1021] The following symbols referenced in processor 'p0' could not be resolved:
   'something [_something]' referenced from '.\Debug\project name.doj'"

So, i think i need to have just *.cpp files in my project (not combination off *.cpp and *.c).

In the 2D DCT/IDCT project, the problem appear when i’m changing all those *.c files to *.cpp files. When i’m trying to build, i get this linking error:

"[Error li1021]  The following symbols referenced in processor 'p0' could not be resolved:
   '_r8x8dct(short *, short *, short *) [__r8x8dct__FPsN21]' referenced from '.\Debug\Start_DCT2.doj'
   '_r8x8invdct_ieee(short *, short *, short *) [__r8x8invdct_ieee__FPsN21]' referenced from '.\Debug\Start_DCT2.doj'"

In *.cpp file this is how i’m calling the function implemented in asm:

     _r8x8dct(in,coeff,temp);

In the same *.cpp file i include a header file where i declared the function:

     void _r8x8dct(fract16 *in, fract16 *coeff, fract16 *temp);

And here is part of the *.asm file which contain the function:

     .section    L1_code;
     .global     __r8x8dct;
     .align      8;
     __r8x8dct:
     .....................................
     __r8x8dct.end:

Analog with function $_r8x8invdct_ieee()

*please excuse me for my english writing errors

  • 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-28T16:59:04+00:00Added an answer on May 28, 2026 at 4:59 pm

    To call C functions from C++ you need to qualify the C function prototypes with extern "C", e.g.

    extern "C" void _r8x8dct(fract16 *in, fract16 *coeff, fract16 *temp);
    

    or if you have more than one C function you can group the prototypes together like this:

    extern "C" {
    
        void _r8x8dct(fract16 *in, fract16 *coeff, fract16 *temp);
    
        // ... other C function prototypes ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this project that it's due in a few hours and I still
So I have this project in PHP where I have some include files next
Okay so, I have this project structure: package A.B class SuperClass (this class is
I have found this project on Codeplex. http://www.codeplex.com/ProjNET I need to integrate this code
I have this large C++ project that I need to build on a platform
I have this tiny Qt project with a project file like this: TEMPLATE =
I have this simple test project just to test the IncludeExceptionDetailInFaults behavior. public class
I have this task for the project with 4 nested subprojects using Maven: For
We have this constant discussion in our project as to the granularity of our
I have a project with a structure like this: project code art config Art

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.