Results 1 to 10 of 10

Thread: Compiling problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2010
    Location
    Russia
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Re: Compiling problem

    How long yoy are learning programming????
    What for functions to declare global, and then it to declare in a class so also without parametres... Esteem as functions appear.

  2. #2
    Join Date
    Apr 2010
    Location
    Moscow
    Posts
    31
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6

    Default Re: Compiling problem

    Long enough, Chexov. I recommend you swot up your English.

  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: Compiling problem

    Your trying to use C functions from a C++ file. The function mangling will prevent this from happening.

    To demangle, change:

    Qt Code:
    1. #include "snaphu_src/snaphu.h"
    To copy to clipboard, switch view to plain text mode 

    to

    Qt Code:
    1. extern "C" {
    2. #include "snaphu_src/snaphu.h"
    3. };
    To copy to clipboard, switch view to plain text mode 

    The compiler will know how to call it then.

  4. The following user says thank you to squidge for this useful post:

    Astrologer (11th May 2010)

  5. #4
    Join Date
    Apr 2010
    Location
    Moscow
    Posts
    31
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6

    Default Re: Compiling problem

    Thank you so much. It worked. But another problem has appeared on the horizon - I can't debug it, you know. I've set stop points but it doesn't stop there. Is there a way to sort that out?
    Last edited by Astrologer; 11th May 2010 at 07:09.

  6. #5
    Join Date
    Apr 2010
    Location
    Moscow
    Posts
    31
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6

    Default Re: Compiling problem

    It worked. I created new project and it solved itself. Thank you again, mate. Have a nice day!

Similar Threads

  1. Problem compiling Qt 4.6
    By dentharg in forum Installation and Deployment
    Replies: 0
    Last Post: 8th December 2009, 07:32
  2. problem compiling
    By mesman00 in forum Qt Programming
    Replies: 2
    Last Post: 13th August 2009, 19:49
  3. Problem with compiling
    By jeanrl in forum Installation and Deployment
    Replies: 5
    Last Post: 24th March 2009, 17:15
  4. Problem in compiling
    By ja_sapienza in forum Qt Programming
    Replies: 7
    Last Post: 11th July 2008, 15:10
  5. xlC V9 problem compiling Qt 3.3.8
    By kevinm in forum Installation and Deployment
    Replies: 0
    Last Post: 8th April 2008, 20:23

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.