Results 1 to 6 of 6

Thread: Compiling MFC from the command line

  1. #1
    ChimpFace9000
    Guest

    Post Compiling MFC from the command line

    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.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Why do you want to?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    ChimpFace9000
    Guest
    Why dont you wany to?

    Ever since i started using the command line, any IDE has just slowed me down.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Export a makefile from the IDE. When you make changes to your compile settings, make sure you do it in the makefile.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5
    ChimpFace9000
    Guest
    I did that and i tried to figure out what options its using to compile MFC, but i just cant get it.

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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>.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width