Results 1 to 2 of 2

Thread: linking issue: undefined reference

  1. #1
    Join Date
    Nov 2014
    Posts
    3
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default linking issue: undefined reference

    I created an application with a goal of doing a Multicore communication.
    I have added the necessary header files and lib files.
    The autocomplete works when typing the name of the function.
    Also when mouse hover is done function information is displayed.
    My thinking it is added correctly.

    However when i compiled i got undefined reference errors:



    undefined reference to `mcc_initialize(unsigned int)'
    undefined reference to `mcc_get_info(unsigned int, mcc_info_struct*)'
    undefined reference to `mcc_destroy(unsigned int)'
    undefined reference to `mcc_create_endpoint(mcc_endpoint*, unsigned int)'

    Can anybody guide me what went wrong?

    Undefined reference error.jpg

    Also how do i force to add the lib file to be last.

    currently when compiling:

    -L/home/carlo/pcm052/toolchain/usr/lib -lmcc -ltQtGui -L/usr/lib -lQtNetwork -lQtCore -lpthread

    i want the mcc to be in the last part

    -L/home/carlo/pcm052/toolchain/usr/lib -ltQtGui -L/usr/lib -lQtNetwork -lQtCore -lpthread -lmcc

  2. #2
    Join Date
    Nov 2014
    Posts
    3
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: linking issue: undefined reference

    issue is solved.

    extern "C"
    {
    #include <linux/mcc_config.h>
    #include <linux/mcc_common.h>
    #include <mcc_api.h>
    }

Similar Threads

  1. cmake moc undefined reference issue
    By dvlpr in forum General Programming
    Replies: 1
    Last Post: 22nd December 2012, 15:28
  2. Replies: 2
    Last Post: 11th August 2012, 17:37
  3. Replies: 1
    Last Post: 5th February 2011, 03:04
  4. Undefined reference
    By eekhoorn12 in forum Qt Programming
    Replies: 2
    Last Post: 6th January 2011, 15:45
  5. Linking error: libQtNetwork.so: undefined reference to `_freeifaddrs'
    By dacla in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 21st April 2008, 22:26

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.