Header File in C language

2020-06-13T10:20:19.227+00:00

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");
    }
}
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,251 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2020-06-13T12:31:06.04+00:00

    C programming is not currently supported here on QnA. They're actively answering question in dedicated forums here.

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=csharpgeneral

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=vcgeneral

    --please don't forget to Accept as answer if the reply is helpful--


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    0 comments No comments