Results 1 to 5 of 5

Thread: How to use methods from linked library written in Ansi C?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2009
    Location
    Krakow, Poland
    Posts
    28
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: How to use methods from linked library written in Ansi C?

    Hi all, thanx for reply.
    I did static linking in simple project with MainWindow widget only and it works. Than I tryied to do the same in my project (now there is 7 form widgets). I had clined solution, rebuild everything and again undefined references. Everything I have made in the same way. What is wrong?

    PS: I solved issue. extern "C" has fixed it.
    Qt Code:
    1. extern "C"{
    2. #include "edr.h"
    3. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by porterneon; 6th March 2011 at 12:32.

Similar Threads

  1. Replies: 0
    Last Post: 22nd February 2010, 16:36
  2. Adding Library Methods - Static Vs Dynamic
    By waynew in forum Qt Programming
    Replies: 1
    Last Post: 15th January 2010, 16:16
  3. Using ANSI string type
    By kahahn in forum Newbie
    Replies: 1
    Last Post: 20th June 2009, 23:52
  4. QHash non-ANSI key problem
    By roxton in forum Qt Programming
    Replies: 4
    Last Post: 27th May 2008, 15:54
  5. ISO/ANSI standard with Visual studio 2005
    By moowy in forum General Programming
    Replies: 7
    Last Post: 16th April 2007, 12:04

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
  •  
Qt is a trademark of The Qt Company.