Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: grandzebu on November 02, 2020, 12:17:52 am

Title: Cross compiling on Windows for Linux
Post by: grandzebu on November 02, 2020, 12:17:52 am
Hello,
I am using code::blocks on my main PC under Windows and I'm able to write Windows applications.
Now, I want write an application (command line) for Linux Debian.
Is it possible ? How to do ?
On the web you can only find the opposite : create a Windows program under Linux.
I'm just starting with the classic :

#include <stdio.h>
#include <stdlib.h>
int main()
{
    printf("Hello world!\n");
    return 0;
}

I think there is a target story ...
Thank you for your reply
GZ