SimpleIDE and multiple .cogc files
Mark Mara
Posts: 64
I am having a problem using SimpleIDE to build a project that contains three .cogc files. The compiler seems to be only generating a global symbol (_load_start_FILENAME_cog ) for the first .cogc file.
When the project contains only one .cogc file it works fine. When I add a second .cogc file I get an unresolved reference error. For example, if I add a file, cogA.cogc, to the project. I can reference it using _load_start_cogA_cog. However, if I add a second .cogc file, cogB.cogc, I get an unresolved reference error when I try to reference _load_start_cogB_cog.
Is there an example of using SimpleIDE to build a project containing more than one .cogc file?
Thanks.
When the project contains only one .cogc file it works fine. When I add a second .cogc file I get an unresolved reference error. For example, if I add a file, cogA.cogc, to the project. I can reference it using _load_start_cogA_cog. However, if I add a second .cogc file, cogB.cogc, I get an unresolved reference error when I try to reference _load_start_cogB_cog.
Is there an example of using SimpleIDE to build a project containing more than one .cogc file?
Thanks.
Comments
Thanks.
--Steve
Thanks for offering to take a look.
main routine: cog_test.c
header file: cog_test.h first .cogc file: cogA.cogc second .cogc file: cogB.cogc
If I comment out the cogB references it launches cogA and seems to work fine.
Thanks.
I am happy. If it would be of any value to you I could probably restore from a backup and compare the .side files.
Thanks for your help.
Apparently with Create Project Library checked, the .cogc/.cog files do not get linked.
Adding an issue to google code thanks. Do you mind if I attach your example to the issue?
Feel free.
Thanks for your help.
I've added notes regarding this issue here: https://code.google.com/p/propside/issues/detail?id=184
The notes demonstrate what it takes to ensure that the cogc code is included in a library when Create Project Library is selected in SimpleIDE.