Hi, currently trying to get a PSOC working for a class project, but am getting some vague errors when trying to build my project. I suspect it has something to do with my trying to import the queue header? I'm running PSOC creator 4.3. Project files attached below.
I appreciate the help!
Solved! Go to Solution.
Ah, thank you! I didn't realize I had to have both .h and .c files present.
One more question -- when I copied over just the modified files from your zip (main.c, queue.h, and queue.c) and pasted them in my project directory, the build still failed with the same error (even when I cleaned beforehand). I was only able to get a successful build after completely overwriting the entire project folder with the contents of your zip file. Is there a specific build option I should have been using or additional settings steps that I did not take which led to the failure?
To be honest, even I was not expecting that the wrong style header file affects the project this much.
When I first saw your project, the queue.o generated from the queue.h wad over 5MB!
I think that the wrong queue.h caused the data structure of the project something very bad.
So to fix your original Symphonius project, follow the steps below.
(1) In your project, from the Workspace Explorer, select queue.h and right-click > Remove From Symphonius
(2) From Project > Clean Symphonius
(3) In your Symphonius.cydsn folder, locate queue.h and physically move it to the Trash (remove the file)
(4) From my project folder, select both queue.h and queue.c and copy them
(5) To your project folder, paste them
(6) From PSoC Creator, select Source Files and right-click "Add > Existing Item..."
Then select "queue.c" first (This is very important)
(7) Select Header Files and right-click "Add > Existing Item..."
Then select "queue.h"
(8) Now both queue.h and queue.c are imported to your project
(9) From Menu Clean and Build Symphonius
(10) Project was built OK.
Thank you for the help. I was able to successfully build and program my PSOC!