C code to qt
General and Desktop
2
Posts
1
Posters
804
Views
1
Watching
-
wrote on 14 Aug 2014, 10:58 last edited by
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.
-
wrote on 14 Aug 2014, 11:26 last edited by
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/2