no such file or directory

  • Thread starter Thread starter Trexalitsas
  • Start date Start date
T

Trexalitsas

Guest
I recently created a new project in C but but as soon as i try to compile pops out a message "no such file or directory/recipe for target file main.c failed" ,thus objective file cant be obtained.Code is correct for sure and the header is without spelling errors.Ive been looking trough internet for several days but havent found a solution yet.Some things that ive tried were to disable antivirus and windows defender ,turn my dev++ int a portable one,change to codelite from devC++,add some extra libraries but nonsense.Its seems to be path problem but i dont now how to fix it .Indicates an error in include "efarmogi_stack.h" library. Any help would be appreciable.

Thanks in advance!

ps. the code is a part of three codes trying to build them together in my project

here is the first part.


    • #include <stdio.h>
    • #include <stdlib.h>
    • #include "efarmogi2_stack.h"
    • main()
    • {
    • int choice,i;
    • STACK st;
    • FOITITIS elem;
    • ST_init(&amp;amp;st);
    • while(1)
    • {
    • system(&amp;#34;cls&amp;#34;);
    • printf(&amp;#34;Menu Stoivas: &amp;#34;);
    • printf(&amp;#34;\n--------------&amp;#34;);
    • printf(&amp;#34;\n1-Othisi&amp;#34;);
    • printf(&amp;#34;\n2-Eksagogi&amp;#34;);
    • printf(&amp;#34;\n3-Ektypwsi&amp;#34;);
    • printf(&amp;#34;\n4-Eksodos&amp;#34;);
    • printf(&amp;#34;\nEpilogi? &amp;#34;);
    • scanf(&amp;#34;%d&amp;#34;,&amp;amp;choice);
    • switch(choice)
    • {
    • case 1:
    • fflush(stdin);
    • printf(&amp;#34;\nDwse Onomateponimo: &amp;#34;);
    • gets(elem.onoma);
    • printf(&amp;#34;\nDwse to vathmo: &amp;#34;);
    • scanf(&amp;#34;%d&amp;#34;, &amp;amp;elem.vathmos);
    • if (ST_push(&amp;amp;st,elem))
    • printf(&amp;#34;Egine i othisi!&amp;#34;);
    • else
    • printf(&amp;#34;Den egine i othisi! Gemati Stoiva!&amp;#34;);
    • break;
    • case 2:
    • if (ST_pop(&amp;amp;st,&amp;amp;elem))
    • printf(&amp;#34;Egine i eksagogi tou %s(%d)&amp;#34;, elem.onoma,elem.vathmos);
    • else
    • printf(&amp;#34;Den egine i eksagogi! Adeia Stoiva!&amp;#34;);
    • break;
    • case 3:
    • //MONO GIA EKPAIDEYTIKOUS LOGOUS!!!
    • //Apagorevetai na akoumpame ti domi!!
    • printf(&amp;#34;\n\nH stoiva exei %d stoixeia: \n&amp;#34;, st.top+1);
    • for (i=0; i&amp;lt;=st.top; i++)
    • {
    • printf(&amp;#34;|%s(%d)&amp;#34;,st.array.onoma, st.array.vathmos);
      [*] }
      [*] break;
      [*] case 4:
      [*] printf(&amp;#34;Bye Bye!!&amp;#34;);
      [*] exit(0);
      [*] default:
      [*] printf(&amp;#34;Lathos eisodos!&amp;#34;);
      [*] }
      [*] printf(&amp;#34;\n\n&amp;#34;);
      [*] system(&amp;#34;pause&amp;#34;);
      [*] }
      [*] }



Continue reading...
 
Back
Top