C code to qt

  • 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.

  • 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.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.