I've made a simple WIN32 project using resources (.rc files).
When I compile with code::blocks the dialog box displays, but when compiling with g++ from cmd it doesn't.
Trying to include the .rc as an argument to g++ results in this:
main.rc: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status
How do I include the .rc file to g++ in cmd?
Edit:
I tried with windres doing:
windres main.rc -o res.o
g++ -c win_main.cpp resource.h -o source.o
g++ -o Executable res.o source.o
I get the same error but with main.o
instead of main.rc
not recognized.