Quote
Sonikku - 2018-04-12 8:28 PM
Hi there
This is excellent work.
I have installed cegcc as per your instructions, the question I need to now ask is, how do I use it?
Do I need to create symlinks to it when compiling code or is it because I am also using normal gcc on my system?
so if I wanted to compile any hello_world program, how would I do this (because presently my system wants to invoke GCC when I try)
Sorry for late reply.
Here are more detailed steps.
1.
After downloading the rpm mentioned in the text file above from my server
(
http://www.superai.online/files/how-to-cegcc.txt
), follow the steps required there, that will install mingw32ce.
Go to /opt/mingw32ce/bin in terminal
2. Use the following code as a test app source code.
(taken from a site on the internet and modified
) Save it as source.c somewhere on your machine.
#include <windows.h>
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
{
MessageBoxW(0, L"Hello HPCFactor! This is stingraze.", L"HELLO!", 0);
}
3. Type the following command in terminal:
sudo ./arm-mingw32ce-gcc -o test.exe /path/to/source/source.c
That will compile a exe compatible with Windows CE. So far I have confirmed the created .exe to work on Windows CE .NET 4.1
(Under Sigmarion 3
)
Edited by stingraze 2018-05-23 1:11 AM