Menu

compiler and linker options

Greg
2007-08-28
2012-09-26
  • Greg

    Greg - 2007-08-28

    Hi all,
    I'm not familiar with the available compiler and linker options for devC++ so i was wondering if someone could tell me what these mean:

    COMPILER OPTIONS:

    -DORTP_EXPORTS
    -DBUILDING_DLL=1
    -DORTP_DLL
    -DORTP_INET6
    -D_WORKAROUND_MINGW32_BUGS -Wall -Werror
    -D_WIN32_WINNT=0x0501

    LINKER OPTIONS:

    --no-export-all-symbols --add-stdcall-alias
    --def ortp.def
    -lws2_32 -lwinmm

    i understand only the last linker option which is to include the ws2_32 and winmm library.

    thank you,
    Greg

     
    • Greg

      Greg - 2007-08-28

      thanks clifford much appreciated!

       
    • Anonymous

      Anonymous - 2007-08-28

      -D defines a macro on the command line - like using #define in the code; the meaning of such a macro depends entirely on how it is used in the code and header files. For the rest read the manuals!

      http://gcc.gnu.org/onlinedocs/ (compiler)
      http://www.gnu.org/software/binutils/manual/ld-2.9.1/ld.html (linker)

      Clifford

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.