Hi all!
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.Its a custom library named #include "application_2.h"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,add some extra libraries but nonsense.Its seems to be path problem but i dont now how to fix it .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
#include <stdio.h>;
#include <stdlib>h;
#include "efarmogi2_stack.h"
main()
{
int choice,i;
STACK st;
FOITITIS elem;
ST_init(&st);
while(1)
{
system("cls");
printf("Menu Stoivas: ");
printf("\n--------------");
printf("\n1-Othisi");
printf("\n2-Eksagogi");
printf("\n3-Ektypwsi");
printf("\n4-Eksodos");
printf("\nEpilogi? ");
scanf("%d",&choice);
switch(choice)
{
case 1:
fflush(stdin);
printf("\nDwse Onomateponimo: ");
gets(elem.onoma);
printf("\nDwse to vathmo: ");
scanf("%d", &elem.vathmos);
if (ST_push(&st,elem))
printf("Egine i othisi!");
else
printf("Den egine i othisi! Gemati Stoiva!");
break;
case 2:
if (ST_pop(&st,&elem))
printf("Egine i eksagogi tou %s(%d)", elem.onoma,elem.vathmos);
else
printf("Den egine i eksagogi! Adeia Stoiva!");
break;
case 3:
//MONO GIA EKPAIDEYTIKOUS LOGOUS!!!
//Apagorevetai na akoumpame ti domi!!
printf("\n\nH stoiva exei %d stoixeia: \n", st.top+1);
for (i=0; i<=st.top; i++)
{
printf("|%s(%d)",st.array[i].onoma, st.array[i].vathmos);
}
break;
case 4:
printf("Bye Bye!!");
exit(0);
default:
printf("Lathos eisodos!");
}
printf("\n\n");
system("pause");
}
}