Results 1 to 2 of 2

Thread: include problems

  1. #1
    Join Date
    Apr 2007
    Posts
    117
    Thanks
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default include problems

    Good day to all!

    My project uses Qt-4.2.3 (QT GUI TOOLKIT) and c++ compiler MinGW-5.1.3.

    I have a problem with integration of .h and .cpp files. I've already copied the .h files (binary.h color.h filter.h image.h jconfig.h jerror.h jmorecfg.h jpegio.h jpeglib.h util.h) and the corresponding .cpp files (binary.cpp color.cpp filter.cpp jpegio.cpp) and copied libjpeg.a and libjpeg.win. And included all of these in my qt project file (IADFUQ.pro). When I compile all files these are the errors I get. All errors are from "jpegio.cpp" only: See attached image's console (I'm having trouble including the error in this post because it says there are too many images and smilies)

    This is the screenshot


    Here is my project file (.pro).
    Qt Code:
    1. TEMPLATE = app
    2. TARGET =
    3. DEPENDPATH += .
    4. INCLUDEPATH += .
    5.  
    6. # Input
    7. HEADERS += binary.h \
    8. color.h \
    9. filter.h \
    10. iadfuqgraphicsview.h \
    11. image.h \
    12. jconfig.h \
    13. jerror.h \
    14. jmorecfg.h \
    15. jpegio.h \
    16. jpeglib.h \
    17. mainwindow.h \
    18. util.h \
    19. ui_mainwindow.h
    20. FORMS += mainwindow.ui
    21. SOURCES += binary.cpp \
    22. color.cpp \
    23. filter.cpp \
    24. iadfuqgraphicsview.cpp \
    25. jpegio.cpp \
    26. main.cpp \
    27. mainwindow.cpp
    To copy to clipboard, switch view to plain text mode 

    how to solve this... ? ...

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: include problems

    Does any of the headers declare those missing functions? Please attach screenshots directly on this forum. Who knows for how long external links remain valid..
    J-P Nurmi

Similar Threads

  1. QApplication: no such file or directory
    By jochen_r in forum Newbie
    Replies: 13
    Last Post: 15th November 2008, 21:46
  2. Painting problem
    By Mel in forum Qt Programming
    Replies: 10
    Last Post: 8th May 2007, 21:38
  3. Can't create an object : initialisation problem ?
    By Nyphel in forum Qt Programming
    Replies: 5
    Last Post: 12th March 2007, 09:07
  4. use button from another Window
    By raphaelf in forum Qt Programming
    Replies: 11
    Last Post: 2nd March 2006, 20:31
  5. Problems with Q_OBJECT and subclassing
    By renaissanz in forum Qt Programming
    Replies: 4
    Last Post: 21st February 2006, 22:18

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.