Thread: Adding MinGW Search Directories

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    47

    Adding MinGW Search Directories

    Does anyone know how to add directories where MinGW searches for include files and libraries? Right know I have to use the -I tag for include files. I haven't tried libraries yet, but I'm pretty sure it's -L. But how would I add the directory "C:/msys/1.0/local/include/" so I would never have to put -I in the command line syntax?

    Thanks!
    Windows XP Service Pack 2
    Borland C++ Compiler Version 5.5

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > so I would never have to put -I in the command line syntax?
    Well you could configure the compiler driver (how, I don't know) to always search that path.

    But compared to all the other things you need to do in creating a project, this seems at best just a minor annoyance.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Search Engine - Binary Search Tree
    By Gecko2099 in forum C Programming
    Replies: 9
    Last Post: 04-17-2005, 02:56 PM
  2. Question 39: Quicksort vs Linear Search
    By Kleid-0 in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 04-17-2005, 11:03 AM
  3. Bible program - search functionality
    By ChadJohnson in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 04-15-2005, 11:33 PM
  4. searching and insertion in a binary search tree
    By galmca in forum C Programming
    Replies: 1
    Last Post: 03-26-2005, 05:15 PM
  5. Adding to a big char* for search engine
    By Landroid in forum C Programming
    Replies: 5
    Last Post: 03-03-2005, 07:16 PM