Results 1 to 20 of 50

Thread: problem with linking

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #37
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: problem with linking

    Quote Originally Posted by wysota
    As you can see here:

    gcc tries to build the precompiled header. I haven't seen a similar line in your log. Maybe your compiler doesn't support it after all.

    BTW. You should change your stable.h. Only include directives should be there. No "using namestace std" calls or simmilar. And put there only those files which are known not to be changed during the life of the project (like Qt includes) and try to avoid includes local to your project unless you're sure they won't change frequently. And please, NEVER include "stable.h" from other files. Only include those files which you really need. Otherwise you'll increase the compilation complexity for environments which don't support precompiled headers.

    That part is interesting too:
    What happens if you try to compile the project on a machine which uses different paths? And try to use slashes instead of backslashes, it's more portable.
    If I tried to copiled on other machine wich different path glew.h doesn't compile...
    I don't still understand: why your compiler gets error and mine not?
    But the thing that I take out toolbox the time compiling is right, what is it? a case?
    Ok my compiler dosns't support it, but what can be the cause of that? what do you say about this (i activated debug mode):
    Qt Code:
    1. mywidget.cpp(1279) : warning C4100: 'e' : unreferenced formal parameter
    2. mywidget.cpp(1332) : warning C4100: 'e' : unreferenced formal parameter
    3. mymainform.cpp
    4. Generating Code...
    5. c:\programmi\microsoft visual studio .net 2003\vc7\include\xtree(1136) : warning C4702: unreachable code
    6. c:\programmi\microsoft visual studio .net 2003\vc7\include\vector(834) : warning C4702: unreachable code
    7. c:\programmi\microsoft visual studio .net 2003\vc7\include\vector(857) : warning C4702: unreachable code
    8. c:\programmi\microsoft visual studio .net 2003\vc7\include\vector(834) : warning C4702: unreachable code
    9. c:\programmi\microsoft visual studio .net 2003\vc7\include\vector(857) : warning C4702: unreachable code
    10. c:\programmi\microsoft visual studio .net 2003\vc7\include\vector(834) : warning C4702: unreachable code
    11. c:\programmi\microsoft visual studio .net 2003\vc7\include\vector(857) : warning C4702: unreachable code
    12. c:\programmi\microsoft visual studio .net 2003\vc7\include\vector(834) : warning C4702: unreachable code
    13. c:\programmi\microsoft visual studio .net 2003\vc7\include\vector(857) : warning C4702: unreachable code
    14. c:\programmi\microsoft visual studio .net 2003\vc7\include\vector(834) : warning C4702: unreachable code
    15. c:\programmi\microsoft visual studio .net 2003\vc7\include\vector(857) : warning C4702: unreachable code
    16. c:\programmi\microsoft visual studio .net 2003\vc7\include\vector(834) : warning C4702: unreachable code
    17. c:\programmi\microsoft visual studio .net 2003\vc7\include\vector(857) : warning C4702: unreachable code
    18. c:\programmi\microsoft visual studio .net 2003\vc7\include\vector(834) : warning C4702: unreachable code
    19. c:\programmi\microsoft visual studio .net 2003\vc7\include\vector(857) : warning C4702: unreachable code
    20. c:\programmi\microsoft visual studio .net 2003\vc7\include\xtree(1136) : warning C4702: unreachable code
    21. //here is working the same long time.....
    To copy to clipboard, switch view to plain text mode 
    Last edited by mickey; 21st July 2006 at 20:45.
    Regards

Similar Threads

  1. Permission denied error during linking
    By bashamehboob in forum Newbie
    Replies: 2
    Last Post: 15th April 2006, 13:02
  2. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36
  3. Replies: 16
    Last Post: 7th March 2006, 15:57
  4. Replies: 4
    Last Post: 20th February 2006, 09:11
  5. Runtime dynamic linking + Qt4 problem
    By _Ramirez_ in forum Qt Programming
    Replies: 5
    Last Post: 11th February 2006, 14:28

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.