Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. C code to qt

C code to qt

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 798 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lihakimpale
    wrote on last edited by
    #1

    I am trying to add my C code to Qt project to do GUI for it. I added existing .c and .h files and build the project without errors.

    When I include those header files in my main.cpp, it says "no such file or directory". I have tried to but those C includes in the main.cpp inside "extern "C"{ }" but without success.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lihakimpale
      wrote on last edited by
      #2

      I figured it out. When I build the project it couldn't find those header files from the qt project folder because I add them by using "add existing files" so the path was different. I just copy pasted those files to the qt project folder and thats it.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved