none
How to set CFLAGS

    Question

  • People, I want to use libcurl in my program. The manual on libcurl says:

    "When building an application that uses the static libcurl library, you must
    add -DCURL_STATICLIB to your CFLAGS."

    So, the question is: how to add option to CFLAGS in Visual C++ IDE?

    Wednesday, February 22, 2006 10:08 AM

Answers

  • This are the preprocessor defines in your project setting for the C++ compiler.
    Wednesday, February 22, 2006 1:42 PM
    Moderator

All replies

  • This are the preprocessor defines in your project setting for the C++ compiler.
    Wednesday, February 22, 2006 1:42 PM
    Moderator
  • Is it the "Project -> MyProject Properties (Alt+F7) -> Configuration Properties -> C/C++ -> Preprocessor -> Preprocessor Definitions"?
    Wednesday, February 22, 2006 1:49 PM
  • Yes! Don't type the -D, just enter the flags.
    Wednesday, February 22, 2006 6:30 PM
    Moderator