Using Codeblocks on the my source found here
https://gitlab.com/jmgibson1981/mycp...les/File%20Ops
It fails with 2 errors to even compile in CodeBlocks. The first error is
Code:
line 58 multiple definition of `file_search_func';obj/Debug/mycprogress/Source Files/File Ops/fileprocess.c
and followed by this
Code:
error: ld returned 1 exit status
I chased my tail with this for awhile. Then for some reason I compiled manually with gcc in the terminal, same options
and it compiled without a word. My function works just fine. I cannot explain the failure to build at all or why this failure is limited to CodeBlocks.
I thought I might have some cruft in the project folder, so I created a new project and imported these 2 source files. Same result. I'm at a loss. I like the IDE, it helps me find my syntax errors (which are thankfully getting fewer and fewer) but this just baffles me. Especially considering it's set to use GCC... I just don't get it.