How do i compile an MFC program from the command line? Ive been trying to figure it out, but i just cant get it to work.
Printable View
How do i compile an MFC program from the command line? Ive been trying to figure it out, but i just cant get it to work.
Why do you want to?
Why dont you wany to?
Ever since i started using the command line, any IDE has just slowed me down.
:)
Export a makefile from the IDE. When you make changes to your compile settings, make sure you do it in the makefile.
I did that and i tried to figure out what options its using to compile MFC, but i just cant get it.
You have to define the symbol _AFXDLL if you use it in a dll, but that's it (I think). You don't need any special libraries (this is embedded into the mfc headers), you only need the windows main libs.
The main thing is that EVERY source module must include at least <afxwin.h>.