Hello everyone, I have a problem creating a very simple makefile in geany. When I try to run this in geany, I always get the error at the bottom of the status list: "Process failed (%1 is not a valid Win32 application)". What can I do about it? What am I doing wrong? ![geany](https://user-images.githubusercontent.com/92315664/186407339-799ded5f-5acc-4...)
I haven't had any problems running in Visual Studio with c++. In geany with c only problems. I use Windows and the program is a simple calculator.
Attached is all my source code:
**makefile** `MyWeirdCalculator: MyWeirdCalculator.c List.c LinkedList.c Calc.c gcc -o MyWeirdCalculator MyWeirdCalculator.c List.c LinkedList.c Calc.c -I.`
**MyWeirdCalculator.c** `#include <stdio.h> #include <stdbool.h> #include "Calc.h"
const int MaxLineLength = 100;
int main() { char* fullLine = (char*)malloc(sizeof(char) * MaxLineLength); Calc* calculator = Calc_NewInstance();
while (true) { printf("Bitte Postfix-Ausdruck eingeben\n>"); gets(fullLine);
int LineLength = strlen(fullLine); int LineIndex = 0; while (LineIndex < LineLength) { char* word = (char*)malloc(sizeof(char) * MaxLineLength); sscanf_s(fullLine + LineIndex, "%s", word, 20);
Calc_EvaluateToken(calculator, word);
LineIndex += strlen(word) + 1; }
printf_s("Stapel-Inhalt: "); List_Print(calculator->Data); printf_s("\n"); } } `