• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » C6000 Single Core DSP » C64x Single Core DSP Forum » How to call dsplib functions from *cpp file?
Share
C6000 Single Core DSP
  • Forums
  • Announcements
Options
  • Subscribe via RSS

How to call dsplib functions from *cpp file?

How to call dsplib functions from *cpp file?

This question is answered
Lenya Fridman
Posted by Lenya Fridman
on Apr 20 2012 06:55 AM
Prodigy20 points

Hi! I can't compile CCS3.3 project (for C6455) with dsplib function, called from C++ file (main.cpp). Compiler gives the following error:

undefined first referenced
symbol in file
--------- ----------------
dsp_fft16x32 /main.obj

When I used the same C file (main.c), the project was compiled successfully.

How should I call dsplib function from C++ file to successfully compile the project?

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • RandyP
    Posted by RandyP
    on Apr 21 2012 22:29 PM
    Verified Answer
    Verified by Rahul Prabhu
    Guru60000 points

    Lenya,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics.

    There are a lot of forums within the E2E Community. Your question is really a software question, while this C64x Single Core DSP Forum is primarily for hardware questions. The Compiler/Assembler experts are more likely to see this question at the TI C/C++ Compiler - Forum. We will have this moved there for your convenience.

    I believe the answer may be one of two things, but I am not sure from what you have said so far.

    1. You have to include the DSPLIB library file in your project so it gets linked with the project. Did you do this?

    2. If you did include the library in your project, then the problem may be that the function needs to be declared with the extern "C" syntax. This is done in dsplib64plus.h, so you may need to make sure you have the latest DSPLIB installed for the C64x+.

    Regards,
    RandyP

     

    If you need more help, please reply back. If this answers the question, please click  Verify Answer  , below.

    Search for answers, Ask a question, click  Verify  when complete, Help others, Learn more.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Lenya Fridman
    Posted by Lenya Fridman
    on Apr 26 2012 14:27 PM
    Verified Answer
    Verified by Lenya Fridman
    Prodigy20 points

    Thanks a lot!

    I discommented line:  extern "C"   in file dsplib64plus.h, and it helped!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use