So, I am developing an OS and for now I've been only writing code in assembly. I wish to continue making it with C/C++. The compiler/editor I use is FASM (for Windows). I've tried using MinGW with it, but it gives error when linking fasm's .o file. How can I continue developing with both Assembly and C/C++? Also, I've searched on the Internet a lot, but I didn't find a solution.
Edit: this is the make batch file i'm using:
cls
echo off
fasm.exe los.asm losasm.o
pause
cls
"C:\MinGW\bin\gcc.exe" -nostdlib los.cpp -o loscpp.o
pause
cls
"C:\MinGW\bin\gcc.exe" -o "C:\Users\helder\Desktop\Lemperyum OperativeSystem I\los" -o -nostdlib losasm.o loscpp.o
pause
cls
pause